sashabaranov / go-openai

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

feat: support stream_options #736

Closed liushuangls closed 1 month ago

liushuangls commented 1 month ago

Describe the change support stream_options

Provide OpenAI documentation link Provide a relevant API doc from https://platform.openai.com/docs/api-reference/chat/create#chat-create-stream_options

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 98.67%. Comparing base (774fc9d) to head (d026fe3). Report is 10 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #736 +/- ## ========================================== + Coverage 98.46% 98.67% +0.21% ========================================== Files 24 24 Lines 1364 1135 -229 ========================================== - Hits 1343 1120 -223 + Misses 15 9 -6 Partials 6 6 ```

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