Skip to content

Commit

Permalink
change model to model_name
Browse files Browse the repository at this point in the history
  • Loading branch information
qbc2016 committed Mar 4, 2024
1 parent c580c8a commit 965c1cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/sphinx_doc/source/tutorial/203-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ where the model configs could be a list of dict:
{
"config_name": "gpt-4-temperature-0.0",
"model_type": "openai",
"model": "gpt-4",
"model_name": "gpt-4",
"api_key": "xxx",
"organization": "xxx",
"generate_args": {
Expand All @@ -27,7 +27,7 @@ where the model configs could be a list of dict:
{
"config_name": "dall-e-3-size-1024x1024",
"model_type": "openai_dall_e",
"model": "dall-e-3",
"model_name": "dall-e-3",
"api_key": "xxx",
"organization": "xxx",
"generate_args": {
Expand Down
2 changes: 1 addition & 1 deletion examples/conversation/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{
"model_type": "openai",
"config_name": "gpt-3.5-turbo",
"model": "gpt-3.5-turbo",
"model_name": "gpt-3.5-turbo",
"api_key": "xxx", # Load from env if not provided
"organization": "xxx", # Load from env if not provided
"generate_args": {
Expand Down
2 changes: 1 addition & 1 deletion tests/model_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_load_model_configs(self) -> None:
{
"model_type": "openai",
"config_name": "gpt-4",
"model": "gpt-4",
"model_name": "gpt-4",
"api_key": "xxx",
"organization": "xxx",
"generate_args": {"temperature": 0.5},
Expand Down

0 comments on commit 965c1cd

Please sign in to comment.