这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@elisalimli
Copy link
Contributor

@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

@render
Copy link

render bot commented May 1, 2024

@vercel
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
@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.

2 participants