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

Add ToolChoiceType::Required #93

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Add ToolChoiceType::Required #93

merged 1 commit into from
Jul 15, 2024

Conversation

hanselke
Copy link
Contributor

Adds required feature of toolchoice

@dongri
Copy link
Owner

dongri commented Jul 15, 2024

@dongri
Copy link
Owner

dongri commented Jul 15, 2024

Controls which (if any) tool is called by the model. none means the model will not call any tool and instead generates a message. auto means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools. Specifying a particular tool via {"type": "function", "function": {"name": "my_function"}} forces the model to call that tool.

@dongri
Copy link
Owner

dongri commented Jul 15, 2024

LGTM

@dongri dongri merged commit b1cb693 into dongri:main Jul 15, 2024
1 check 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.

2 participants