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 conditional check for tool_calls in llm.py #986

Merged
merged 1 commit into from
May 1, 2024

Conversation

elisalimli
Copy link
Collaborator

@elisalimli elisalimli commented May 1, 2024

LiteLLM only sets tool_calls attribute if tool_calls are present in the Message class. This PR checks if that attribute exists, otherwise Python would throw error.

https://github.com/BerriAI/litellm/blob/main/litellm/utils.py#L383

Copy link

render bot commented May 1, 2024

Copy link

vercel bot commented May 1, 2024

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

Name Status Preview Updated (UTC)
superagent-ui 🔄 Building (Inspect) Visit Preview May 1, 2024 11:54am

@elisalimli elisalimli merged commit cf5a39b into main May 1, 2024
7 of 8 checks passed
@elisalimli elisalimli deleted the fix/bedrock-tool-calling branch May 1, 2024 11:54
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.

None yet

1 participant