Skip to content

Commit

Permalink
Use max_completion_tokens in Openai models
Browse files Browse the repository at this point in the history
  • Loading branch information
pkelaita committed Dec 17, 2024
1 parent 62b1cc5 commit ced52cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions l2m2/model_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class ModelEntry(TypedDict):
"max": 2.0,
},
"max_tokens": {
"custom_key": "max_completion_tokens",
"default": PROVIDER_DEFAULT,
"max": 4096,
},
Expand All @@ -148,6 +149,7 @@ class ModelEntry(TypedDict):
"max": 2.0,
},
"max_tokens": {
"custom_key": "max_completion_tokens",
"default": PROVIDER_DEFAULT,
"max": 4096,
},
Expand All @@ -164,6 +166,7 @@ class ModelEntry(TypedDict):
"max": 2.0,
},
"max_tokens": {
"custom_key": "max_completion_tokens",
"default": PROVIDER_DEFAULT,
"max": 4096,
},
Expand All @@ -180,6 +183,7 @@ class ModelEntry(TypedDict):
"max": 2.0,
},
"max_tokens": {
"custom_key": "max_completion_tokens",
"default": PROVIDER_DEFAULT,
"max": 4096,
},
Expand Down

0 comments on commit ced52cc

Please sign in to comment.