Skip to content

Fix streaming in chat completions #112

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 1 commit into from
Mar 13, 2025
Merged

Fix streaming in chat completions #112

merged 1 commit into from
Mar 13, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Mar 13, 2025

Summary

Closes #63. Fixes the type errors with usage, which were hidden away by using model_copy.

Test plan

Added a unit test, which failed before and passes now.

Also ran stream_text.py, with chat completions.

@rm-openai rm-openai merged commit 1670d40 into main Mar 13, 2025
5 checks passed
@rm-openai rm-openai deleted the pr112 branch March 13, 2025 01:14
nakasy000 pushed a commit to nakasy000/openai-agents-python that referenced this pull request Mar 27, 2025
Fix streaming in chat completions
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.

AttributeError: 'CompletionUsage' object has no attribute 'input_tokens'
1 participant