-
Notifications
You must be signed in to change notification settings - Fork 341
feat(genai)!: migration to google-genai
#1330
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
base: main
Are you sure you want to change the base?
Conversation
SDK handles this internally for both Gemini and Vertex
it's inherited from `_BaseGoogleGenerativeAI` already
`client_options` is no longer supported; we add it as an alias to `base_url` and will warn if any key other than `'api_endpoint'` is used
google-genaigoogle-genai
google-genaigoogle-genai
google-genaigoogle-genai
|
Regarding the code for https://ai.google.dev/gemini-api/docs/thinking?authuser=1&hl=zh-cn#signatures # Add function call signatures to content only if there's already other content
# This preserves backward compatibility where content is "" for
# function-only responses
if function_call_signatures:
for sig_block in function_call_signatures:
content = _append_to_content(content, sig_block) |
|
@oDaiSuno yep, haven't rebased this on the latest changes in |
WIP
Based largely on the excellent foundational work done by @emhagman in #1077
https://googleapis.github.io/python-genai/index.html
Closes #853
Closes #1212