langchain-ai / langchainjs

🦜🔗 Build context-aware reasoning applications 🦜🔗
https://js.langchain.com/docs/
MIT License
12.42k stars 2.11k forks source link

google-common [feature]: Support JSON Mode for Gemini #5071

Closed afirstenberg closed 5 months ago

afirstenberg commented 5 months ago

Privileged issue

Issue Content

See documentation for responseMimeType at https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini#request_body

See https://github.com/langchain-ai/langchain-google/issues/144

JackFener commented 5 months ago

already managed to add it. would you like to assign it to me? I'll add some test and then open a pull request.

I would be happy to work also on the other google common issues

rossanodr commented 4 months ago

How can I use it ChatGoogleGenerativeAI?