mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-20 18:20:33 +00:00
update docs
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user