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

OpenAI GPT tool_choice="required" finishes with stop reason stop which throws error even though tool is called #256

Closed
willbakst opened this issue May 17, 2024 · 2 comments · Fixed by #257
Assignees
Labels
Bug Something isn't working

Comments

@willbakst
Copy link
Contributor

Description

For some reason calling GPT models while requiring the use of tools no longer has the correct stop reason.

Ideally in the event that tool_choice="required" we should be ok with any stopping reason so long as there is a tool.

Python, Mirascope & OS Versions, related packages (not required)

No response

@willbakst
Copy link
Contributor Author

@dearkafka this is released in v0.13.3 :)

You can set tool_choice="required" in call_params or as a keyword arg and it should work

@dearkafka
Copy link

thanks 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants