mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
update docs
This commit is contained in:
parent
f7d457688c
commit
3bde2d569a
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ initial_model = "command-nightly"
|
|||
try:
|
||||
response = completion(model=initial_model, messages=messages)
|
||||
except ContextWindowExceededError as e:
|
||||
model_max_tokens = get_max_tokens(model)
|
||||
model_max_tokens = get_max_tokens(model)["max_tokens"]
|
||||
for model in context_window_fallback_list:
|
||||
if model_max_tokens < model["max_tokens"]
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue