Skip to content

Conversation

@stuntnmore
Copy link

@stuntnmore stuntnmore commented May 20, 2024

Fixes # (issue)
add setting api version on google gen ai, so it can support v1 or v1beta which has more models available

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 20, 2024
@vercel
Copy link

vercel bot commented May 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2024 2:54pm
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 20, 2024 2:54pm
@afirstenberg
Copy link
Contributor

@stuntnmore - I can't do this, but I suggest changing the name to something like:
google-genai [patch]: set apiVersion

@afirstenberg
Copy link
Contributor

afirstenberg commented May 20, 2024

Yeah, it looks like #5426 added the apiVesion field, and then set it to "v1" by default which blocked the new models. Which undid what #5115 did (which was to use the latest version of the library, which used "v1beta" by default.) (And where I requested we add the "apiVersion", but we were in a rush to get it out.)

LGTM

@stuntnmore stuntnmore changed the title add support to set apiVersion in fields so more models can be supported May 20, 2024
@stuntnmore
Copy link
Author

stuntnmore commented May 20, 2024

@stuntnmore - I can't do this, but I suggest changing the name to something like: google-genai [patch]: set apiVersion

name changed :)

@bracesproul
Copy link
Member

Hey, I'm going to close this in favor of #5490 which uses the fields passed into the constructor, and removes the class properties since they weren't being used outside of the constructor.

@stuntnmore stuntnmore deleted the add/genaiApiVersioning branch May 20, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

3 participants