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

vertexai: Add enum response schema for controlled generation #532

Merged

Conversation

jzaldi
Copy link
Contributor

@jzaldi jzaldi commented Oct 4, 2024

PR Description

Add the possibility of using text/enum as mimetype for controlled generation

Relevant issues

Fixes #521

Type

🆕 New Feature

@jzaldi jzaldi marked this pull request as ready for review October 4, 2024 16:55
@@ -790,6 +790,30 @@ def test_structured_output_schema():
response = model.invoke("List a few popular cookie recipes")


@pytest.mark.extended
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits: we can actually have it under release tag

@lkuligin lkuligin merged commit e4fc044 into langchain-ai:main Oct 4, 2024
14 of 15 checks passed
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

Successfully merging this pull request may close these issues.

Support response_mime_type=text/x.enum
2 participants