Skip to content

Conversation

arty-hlr
Copy link

@arty-hlr arty-hlr commented Jan 6, 2025

See #662

Proposed fix by checking if delta is not None and if so just continuing the for loop. Another option would be to add a try catch around the delta.get("tool_calls") if use_litellm else delta.tool_calls. Let me know!

Copy link

@SimonTheCoder SimonTheCoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chunk.choices can be empty which will cause out of index when chunk.choices[0]

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