Skip to content

feat: Make websockets an optional dependency for live module #778

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Konikz
Copy link

@Konikz Konikz commented May 7, 2025

Makes the websockets library an optional dependency, only required for the .live module.

Changes addressed :

  • Moving websockets to project.optional-dependencies.live in pyproject.toml.
  • Updating google/genai/live.py to raise an informative ImportError if websockets is not installed when the live module is imported, guiding users to install it via pip install google-genai[live].

Fixes issue #765

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.

1 participant