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

fix undefined text completions in anthropic response #653

Conversation

agomezcampero
Copy link
Contributor

Really small bug fix. Anthropic can return only tool_calls, if that is the case then you don't have any text completions and you get an error trying to get the chat_completion

@agomezcampero agomezcampero changed the title fix undeined text completions in anthropic response fix undefined text completions in anthropic response Jun 3, 2024
@andreibondarev andreibondarev self-requested a review June 3, 2024 14:16
@andreibondarev
Copy link
Collaborator

@agomezcampero Thank you for the fix!

@andreibondarev andreibondarev merged commit f3d0bd8 into patterns-ai-core:main Jun 3, 2024
4 of 5 checks passed
@agomezcampero agomezcampero deleted the fix-undefined-text-completions-in-anthropic-response branch June 3, 2024 15:29
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