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(factory.py): handle missing 'content' in cohere assistant messages #5384

Conversation

miraclebakelaser
Copy link
Contributor

@miraclebakelaser miraclebakelaser commented Aug 27, 2024

I'll fill out the template based on the information we've discussed:

Title

Handle missing 'content' in assistant messages for Cohere's command-r-plus model

Relevant issues

Type

🐛 Bug Fix

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locally

Update cohere_messages_pt_v2 function to check for 'content' existence
Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 11:02am

@krrishdholakia krrishdholakia merged commit ec2357f into BerriAI:main Aug 27, 2024
2 checks passed
@miraclebakelaser miraclebakelaser deleted the fix/cohere-tool-calls-content-field branch August 28, 2024 03:53
@ishaan-jaff
Copy link
Contributor

Hi @miraclebakelaser , curious do you use LiteLLM today ? If so, I'd love to hop on a call and learn how we can improve LiteLLM for you

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.

[Bug]: Cohere 'command-r-plus' model fails when processing tool calls due to missing 'content' field
3 participants