sashabaranov / go-openai

OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go
Apache License 2.0
9.29k stars 1.43k forks source link

Allow streaming for O1 model family #902

Closed handsomefox closed 5 days ago

handsomefox commented 1 week ago

Describe the change Don't return error if streaming is enable for o1 model family.

Provide OpenAI documentation link https://platform.openai.com/docs/api-reference/streaming

Additional context https://x.com/OpenAIDevs/status/1858609150999359559

sashabaranov commented 6 days ago

@handsomefox thank you for the PR! Please the latest changes from master here, so the CI will pass

codecov[bot] commented 6 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.69%. Comparing base (774fc9d) to head (2b1abae). Report is 72 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #902 +/- ## ========================================== + Coverage 98.46% 98.69% +0.23% ========================================== Files 24 26 +2 Lines 1364 1758 +394 ========================================== + Hits 1343 1735 +392 - Misses 15 16 +1 - Partials 6 7 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features:

sashabaranov commented 5 days ago

@handsomefox Sorry, I ended up merging the other PR. But thanks again for the links — really helpful to get full context