Skip to content

Commit

Permalink
gen gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
GaspardBT committed Nov 12, 2024
1 parent e7a2860 commit 0716cb9
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 24 deletions.
14 changes: 8 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/mistralai_gcp/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
1 change: 1 addition & 0 deletions packages/mistralai_gcp/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions packages/mistralai_gcp/src/mistralai_gcp/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/mistralai_gcp/src/mistralai_gcp/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0716cb9

Please sign in to comment.