From 0716cb978f295a547b11a8c262a77acfe0af5344 Mon Sep 17 00:00:00 2001 From: gaspardBT Date: Tue, 12 Nov 2024 19:11:46 +0100 Subject: [PATCH] gen gcp --- .speakeasy/workflow.lock | 14 ++++++++------ packages/mistralai_gcp/.speakeasy/gen.lock | 8 ++++---- packages/mistralai_gcp/.speakeasy/gen.yaml | 1 + packages/mistralai_gcp/src/mistralai_gcp/chat.py | 16 ++++++++-------- .../models/chatcompletionrequest.py | 4 ++-- .../models/chatcompletionstreamrequest.py | 4 ++-- .../src/mistralai_gcp/sdkconfiguration.py | 4 ++-- 7 files changed, 27 insertions(+), 24 deletions(-) diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index da0afab..ce6581b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -7,9 +7,9 @@ sources: tags: - latest mistral-google-cloud-source: - sourceNamespace: mistral-openapi-google-cloud - sourceRevisionDigest: sha256:b2ce8e0e63674ea7ccfa3a75ff231bb97a39748331bcc0a3629f29c158f5b31e - sourceBlobDigest: sha256:a895adbf903776492b28daa3dd8c624f509decbbfe9ca6cda6510a33226604be + sourceNamespace: mistral-google-cloud-source + sourceRevisionDigest: sha256:22da209c58cb1591b3fde77467a9affce33c874724b220dd68f11a8f5fe92fbe + sourceBlobDigest: sha256:79c11900db52030ed8d8fff8066f9fe716670f4eadca41936f2cbc1a270fb087 tags: - latest mistral-openapi: @@ -27,9 +27,11 @@ targets: sourceBlobDigest: sha256:3c039e1f8a2230a86b0e1acec6224f6b8d6f181fb222b6b3b39d38b52075a8ec mistralai-gcp-sdk: source: mistral-google-cloud-source - sourceNamespace: mistral-openapi-google-cloud - sourceRevisionDigest: sha256:b2ce8e0e63674ea7ccfa3a75ff231bb97a39748331bcc0a3629f29c158f5b31e - sourceBlobDigest: sha256:a895adbf903776492b28daa3dd8c624f509decbbfe9ca6cda6510a33226604be + sourceNamespace: mistral-google-cloud-source + sourceRevisionDigest: sha256:22da209c58cb1591b3fde77467a9affce33c874724b220dd68f11a8f5fe92fbe + sourceBlobDigest: sha256:79c11900db52030ed8d8fff8066f9fe716670f4eadca41936f2cbc1a270fb087 + codeSamplesNamespace: mistral-openapi-google-cloud-code-samples + codeSamplesRevisionDigest: sha256:8539ff0f99be949906dad55250e1d230dfebf062e8f7c38398713e11c6bb48ec mistralai-sdk: source: mistral-openapi sourceNamespace: mistral-openapi diff --git a/packages/mistralai_gcp/.speakeasy/gen.lock b/packages/mistralai_gcp/.speakeasy/gen.lock index 6add360..e177824 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.lock +++ b/packages/mistralai_gcp/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: ec60f2d8-7869-45c1-918e-773d41a8cf74 management: - docChecksum: 46baf8da7636ea1bf44557571d011045 + docChecksum: a4b0284a2171be4279ac869462fc2ba5 docVersion: 0.0.2 - speakeasyVersion: 1.434.4 - generationVersion: 2.452.0 + speakeasyVersion: 1.438.1 + generationVersion: 2.457.2 releaseVersion: 1.2.0 - configChecksum: 6036ab871ca1cf21d35bfc75dc25089b + configChecksum: 5a6e207048dd06f191872088627d9018 published: true features: python: diff --git a/packages/mistralai_gcp/.speakeasy/gen.yaml b/packages/mistralai_gcp/.speakeasy/gen.yaml index 97e9faf..360352e 100644 --- a/packages/mistralai_gcp/.speakeasy/gen.yaml +++ b/packages/mistralai_gcp/.speakeasy/gen.yaml @@ -24,6 +24,7 @@ python: authors: - Mistral clientServerStatusCodesAsErrors: true + defaultErrorName: SDKError description: Python Client SDK for the Mistral AI API in GCP. enumFormat: union fixFlags: diff --git a/packages/mistralai_gcp/src/mistralai_gcp/chat.py b/packages/mistralai_gcp/src/mistralai_gcp/chat.py index 19c7435..1791366 100644 --- a/packages/mistralai_gcp/src/mistralai_gcp/chat.py +++ b/packages/mistralai_gcp/src/mistralai_gcp/chat.py @@ -34,8 +34,8 @@ def stream( models.ChatCompletionStreamRequestToolChoiceTypedDict, ] ] = None, - presence_penalty: Optional[float] = 0, - frequency_penalty: Optional[float] = 0, + presence_penalty: Optional[float] = None, + frequency_penalty: Optional[float] = None, n: OptionalNullable[int] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -179,8 +179,8 @@ async def stream_async( models.ChatCompletionStreamRequestToolChoiceTypedDict, ] ] = None, - presence_penalty: Optional[float] = 0, - frequency_penalty: Optional[float] = 0, + presence_penalty: Optional[float] = None, + frequency_penalty: Optional[float] = None, n: OptionalNullable[int] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -332,8 +332,8 @@ def complete( models.ChatCompletionRequestToolChoiceTypedDict, ] ] = None, - presence_penalty: Optional[float] = 0, - frequency_penalty: Optional[float] = 0, + presence_penalty: Optional[float] = None, + frequency_penalty: Optional[float] = None, n: OptionalNullable[int] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -481,8 +481,8 @@ async def complete_async( models.ChatCompletionRequestToolChoiceTypedDict, ] ] = None, - presence_penalty: Optional[float] = 0, - frequency_penalty: Optional[float] = 0, + presence_penalty: Optional[float] = None, + frequency_penalty: Optional[float] = None, n: OptionalNullable[int] = UNSET, retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, diff --git a/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionrequest.py b/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionrequest.py index e1c263b..1f956d0 100644 --- a/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionrequest.py +++ b/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionrequest.py @@ -114,10 +114,10 @@ class ChatCompletionRequest(BaseModel): tool_choice: Optional[ChatCompletionRequestToolChoice] = None - presence_penalty: Optional[float] = 0 + presence_penalty: Optional[float] = None r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.""" - frequency_penalty: Optional[float] = 0 + frequency_penalty: Optional[float] = None r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" n: OptionalNullable[int] = UNSET diff --git a/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionstreamrequest.py b/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionstreamrequest.py index 5fc4085..f12a547 100644 --- a/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionstreamrequest.py +++ b/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionstreamrequest.py @@ -114,10 +114,10 @@ class ChatCompletionStreamRequest(BaseModel): tool_choice: Optional[ChatCompletionStreamRequestToolChoice] = None - presence_penalty: Optional[float] = 0 + presence_penalty: Optional[float] = None r"""presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.""" - frequency_penalty: Optional[float] = 0 + frequency_penalty: Optional[float] = None r"""frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.""" n: OptionalNullable[int] = UNSET diff --git a/packages/mistralai_gcp/src/mistralai_gcp/sdkconfiguration.py b/packages/mistralai_gcp/src/mistralai_gcp/sdkconfiguration.py index fdb296c..d94a4e4 100644 --- a/packages/mistralai_gcp/src/mistralai_gcp/sdkconfiguration.py +++ b/packages/mistralai_gcp/src/mistralai_gcp/sdkconfiguration.py @@ -29,8 +29,8 @@ class SDKConfiguration: language: str = "python" openapi_doc_version: str = "0.0.2" sdk_version: str = "1.2.0" - gen_version: str = "2.452.0" - user_agent: str = "speakeasy-sdk/python 1.2.0 2.452.0 0.0.2 mistralai-gcp" + gen_version: str = "2.457.2" + user_agent: str = "speakeasy-sdk/python 1.2.0 2.457.2 0.0.2 mistralai-gcp" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None