Skip to content
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

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

Closed
1 task done
afirstenberg opened this issue Apr 11, 2024 · 2 comments · Fixed by #5190
Closed
1 task done

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

afirstenberg opened this issue Apr 11, 2024 · 2 comments · Fixed by #5190
Labels
auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features

Comments

@afirstenberg
Copy link
Contributor

Privileged issue

  • I am a LangChain maintainer, or was asked directly by a LangChain maintainer to create an issue here.

Issue Content

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

See langchain-ai/langchain-google#144

@dosubot dosubot bot added the auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features label Apr 11, 2024
@JackFener
Copy link
Contributor

JackFener commented Apr 22, 2024

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

JackFener pushed a commit to JackFener/langchainjs that referenced this issue Apr 23, 2024
bracesproul added a commit that referenced this issue May 1, 2024
* google-common [feature]: Support JSON Mode for Gemini #5071

* added mock json file for tests

* defined GoogleAIResponseMimeType type

* responseMimetype default specified in the GoogleBaseLLM class that implements it

* test to make sure the request contains the responseMimeType setting in the generation config

* Format llms.test.ts

* Format llms.ts

* Format types.ts

* Nit types.ts jsdoc

* Format types.ts

---------

Co-authored-by: GiacomoCherry <giacomo.fava@cherrynpl.com>
Co-authored-by: Brace Sproul <braceasproul@gmail.com>
@rossanodr
Copy link

How can I use it ChatGoogleGenerativeAI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants