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

Vertex AI [feature]: Support JSON Mode for Gemini #144

Closed
afirstenberg opened this issue Apr 11, 2024 · 1 comment
Closed

Vertex AI [feature]: Support JSON Mode for Gemini #144

afirstenberg opened this issue Apr 11, 2024 · 1 comment

Comments

@afirstenberg
Copy link

afirstenberg commented Apr 11, 2024

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

See langchain-ai/langchainjs#5071

@Ben81828
Copy link

Is it possible to pass in our defined schema and specify the use of json_mode, like in this example?
https://python.langchain.com/v0.1/docs/modules/model_io/chat/structured_output/

structured_llm = model.with_structured_output(Joke, method="json_mode")

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

No branches or pull requests

3 participants