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 for 'NoneType' object has no attribute 'tool_calls' issue #663

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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!

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.

1 participant