Skip to content

fix: handle google.genai exceptions and guard colab imports#3

Open
Pratz1337 wants to merge 1 commit intogoogle-deepmind:mainfrom
Pratz1337:fix/genai-client-retry
Open

fix: handle google.genai exceptions and guard colab imports#3
Pratz1337 wants to merge 1 commit intogoogle-deepmind:mainfrom
Pratz1337:fix/genai-client-retry

Conversation

@Pratz1337
Copy link
Copy Markdown

Fixes #2

Changes

  • Updates client_lib.py to retry on google.genai.errors.ServerError and APIError.
  • Guards google.colab imports in game_tree.py to prevent ImportError in non-Colab environments.

- Updates client_lib.py to retry on google.genai.errors.ServerError and APIError, resolving compatibility issues with the new GenAI client.
- Guards google.colab imports in game_tree.py to prevent ImportError in non-Colab environments.
@google-cla
Copy link
Copy Markdown

google-cla bot commented Dec 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

Fix retry logic for google.genai client compatibility

1 participant