sashabaranov / go-openai

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

feat: usage struct add CompletionTokensDetails #863

Closed liushuangls closed 1 month ago

liushuangls commented 1 month ago

referenced document: https://platform.openai.com/docs/api-reference/chat/object#chat/object-usage

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 99.03%. Comparing base (774fc9d) to head (e57b5ea). Report is 57 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #863 +/- ## ========================================== + Coverage 98.46% 99.03% +0.57% ========================================== Files 24 26 +2 Lines 1364 1454 +90 ========================================== + Hits 1343 1440 +97 + Misses 15 8 -7 Partials 6 6 ```

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