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

Add incomplete run status #763

Closed shosato0306 closed 3 weeks ago

shosato0306 commented 3 weeks ago

Description

This PR adds the missing incomplete run status to the code, which is defined in the OpenAI documentation but was not present in the codebase.

Additionally, I corrected discrepancies between the documentation and the code for the explanations of MaxPromptTokens and MaxCompletionTokens.

References

OpenAI Documentation on Run Lifecycle

codecov[bot] commented 3 weeks ago

Codecov Report

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

Project coverage is 98.68%. Comparing base (774fc9d) to head (59dffbd). Report is 17 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #763 +/- ## ========================================== + Coverage 98.46% 98.68% +0.22% ========================================== Files 24 24 Lines 1364 1140 -224 ========================================== - Hits 1343 1125 -218 + Misses 15 9 -6 Partials 6 6 ```

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