Add support for GPT-4-0806 model in models.py #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Add support for the new GPT-4-0806 model in the
models.py
file, including its updated pricing.Background
OpenAI has released a new version of GPT-4, known as GPT-4-0806, which offers improved performance and lower prices. We need to update our
spice/models.py
file to include this new model option.Implementation Steps
spice/models.py
file:TextModel
instance for GPT-4-0806.models
list.Code Changes
spice/models.py
, added the new GPT-4-0806 model.README.md
to include the new model in themodel_aliases
.tests/test_models.py
to verify the new model's attributes and retrieval.Testing
get_model_from_name("gpt-4-0806")
.Documentation
Updated relevant documentation, such as README.md, to include information about the new GPT-4-0806 model option.
Closes #97
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!