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

[BUG] Anthropic JSON mode doesn't work with tools calls, only works with streaming tools #228

Closed
willbakst opened this issue May 9, 2024 · 0 comments · Fixed by #230
Closed
Assignees
Labels
Bug Something isn't working

Comments

@willbakst
Copy link
Contributor

willbakst commented May 9, 2024

To Reproduce
Steps to reproduce the behavior:

  1. Create an AnthropicCall
  2. Set response_format to json and provide a tool
  3. Call the model to use the tool
  4. No tool found since response was json and not the tool

Expected behavior
The JSON returned to be properly parsed into the expected tool call

Additional context
It seems that this behavior was lost during the transition from XML tools to the new beta tools that Anthropic released.

Identified this bug during digging work done in #221

@willbakst willbakst added the Bug Something isn't working label May 9, 2024
@willbakst willbakst self-assigned this May 9, 2024
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.

1 participant