Skip to content

Conversation

@dumontg
Copy link
Contributor

@dumontg dumontg commented Jan 9, 2026

This PR fixes the CI for GCP and Azure SDKs:

  • The GitHub actions now reference the correct Speakeasy targets
  • Fixes issues in packages/mistralai_gcp/src/mistralai_private_gcp/sdk.py (not tracked by Speakeasy since we added gcloud authentication)
    • Dropped the use of SDKError for non-HTTP errors (it now expects a raw_response in its constructor and internally makes accesses to its attributes). They have been replaced with ValueError when relevant (aligned with elsewhere in the SDK for invalid inputs) or basic Exceptions.
    • Changed the return type GoogleCloudBeforeRequestHook#before_request to a union like in the base class.

@dumontg dumontg requested a review from GaspardBT January 9, 2026 13:53
@dumontg dumontg marked this pull request as ready for review January 9, 2026 13:53
if access_token:
return access_token

assert credentials is not None, "credentials must be initialized"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should normally never assert because of the logic above. That's why I used an assert

@dumontg dumontg merged commit 1923fe6 into main Jan 12, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants