Skip to content

Fix stream error using LiteLLM #589

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

Merged
merged 3 commits into from
Apr 24, 2025

Conversation

DanieleMorotti
Copy link
Contributor

In response to issue #587 , I implemented a solution to first check if refusal and usage attributes exist in the delta object.

I added a unit test similar to test_openai_chatcompletions_stream.py.

Let me know if I should change something.

Copy link
Collaborator

@rm-openai rm-openai left a comment

Choose a reason for hiding this comment

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

awesome thank you!

@rm-openai
Copy link
Collaborator

Ah @DanieleMorotti you'll need to move the test into tests/models/

@devv-shayan
Copy link

was working on :) but thanks @DanieleMorotti

@rm-openai rm-openai merged commit e11b822 into openai:main Apr 24, 2025
5 checks passed
@DanieleMorotti DanieleMorotti deleted the fix_litellm_stream branch April 24, 2025 17:06
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.

3 participants