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

feat(vertexai/genai): constrained decoding #9731

Merged
merged 6 commits into from Apr 29, 2024
Merged

feat(vertexai/genai): constrained decoding #9731

merged 6 commits into from Apr 29, 2024

Conversation

jba
Copy link
Contributor

@jba jba commented Apr 9, 2024

Expose FunctionCallingMode, which lets the user configure
how the model issues function calls.

By setting the new field Model.ToolConfig, the user can select whether
the model can call any provided function, only those in a provided list,
or no functions.

Regenerating also brought along a few other new types and values,
some of which required configuration.

@jba jba requested a review from eliben April 9, 2024 12:18
@jba jba requested review from a team as code owners April 9, 2024 12:18
vertexai/genai/client.go Outdated Show resolved Hide resolved
vertexai/genai/client_test.go Outdated Show resolved Hide resolved
jba added 3 commits April 15, 2024 08:09
Expose FunctionCallingMode, which lets the user configure
how the model issues function calls.

By setting the new field `Model.ToolConfig`, the user can select whether
the model can call any provided function, only those in a provided list,
or no functions.

Regenerating also brought along a few other new types and values,
some of which required configuration.
vertexai/genai/aiplatformpb_veneer.gen.go Outdated Show resolved Hide resolved
vertexai/genai/aiplatformpb_veneer.gen.go Show resolved Hide resolved
@Deleplace
Copy link

TIL "Example functions without output comments are compiled but not executed."

I can hardcode my projectID/location/model, but then what is the proper way to run the 6 Example funcs?

Is it expected that the tests in client_test.go are executed in the CI/CD pipeline, but the tests in example_test.go are not?

@jba
Copy link
Contributor Author

jba commented Apr 29, 2024

@Deleplace Yes, there's no way to actually run the examples as tests.

@jba jba enabled auto-merge (squash) April 29, 2024 23:20
@jba jba merged commit bb84fbd into main Apr 29, 2024
12 checks passed
@jba jba deleted the jba-force-funcall branch April 29, 2024 23:25
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.

None yet

3 participants