go-openai
go-openai copied to clipboard
Add support for GPT-4-32K and GPT-4-32K-0314 models
This PR adds support for the GPT-4-32K and GPT-4-32K-0314 models by adding three new constants to the list of GPT models and adding the new models to the switch statements in the CreateChatCompletion and CreateCompletion functions. The PR also removes unnecessary code that checked for invalid models, as the new models are valid. The changes in this PR do not introduce any new issues and successfully add support for the new models.
Changes Made:
Added three new constants for GPT-4-32K and GPT-4-32K-0314 models Added new models to switch statements in CreateChatCompletion and CreateCompletion functions Removed unnecessary code that checked for invalid models
Codecov Report
Merging #158 (505af4f) into master (f4a6a99) will increase coverage by
0.28%. The diff coverage is80.00%.
@@ Coverage Diff @@
## master #158 +/- ##
==========================================
+ Coverage 50.19% 50.48% +0.28%
==========================================
Files 16 16
Lines 516 517 +1
==========================================
+ Hits 259 261 +2
Misses 201 201
+ Partials 56 55 -1
| Impacted Files | Coverage Δ | |
|---|---|---|
| completion.go | 47.05% <50.00%> (+5.88%) |
:arrow_up: |
| chat.go | 68.42% <100.00%> (+1.75%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.