Skip to content

Commit 47cf891

Browse files
authored
fix multiple generation config + linting issue (#180)
* repin latest * update gcp for proper type * proper formating * add newline in hook
1 parent 97f10c1 commit 47cf891

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.speakeasy/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ workflowVersion: 1.0.0
22
# speakeasyVersion is pinned to unblock https://github.com/mistralai/client-python/pull/173
33
# The speakeasy run was appending `_` to some attributes to avoid conflicts with reserved keywords.
44
# This would have change the SDK APIs and break the existing clients which we don't want.
5-
speakeasyVersion: 1.462.2
5+
speakeasyVersion: latest
66
sources:
77
mistral-azure-source:
88
inputs:

packages/mistralai_azure/src/mistralai_azure/_hooks/custom_user_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ def before_request(
1919
PREFIX + current.split(" ")[1]
2020
)
2121

22-
return request
22+
return request

packages/mistralai_gcp/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ python:
1919
pytest: ^8.2.2
2020
pytest-asyncio: ^0.23.7
2121
main:
22-
google-auth: 2.27.0
22+
google-auth: ^2.31.0
2323
requests: ^2.32.3
2424
authors:
2525
- Mistral

packages/mistralai_gcp/src/mistralai_gcp/sdk.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def get_model_info(model: str) -> Tuple[str, str]:
3030
# if the model requiers the legacy fomat, use it, else do nothing.
3131
if model in LEGACY_MODEL_ID_FORMAT:
3232
return "-".join(model.split("-")[:-1]), LEGACY_MODEL_ID_FORMAT[model]
33-
else:
34-
return model, model
33+
return model, model
3534

3635

3736

0 commit comments

Comments
 (0)