forked from phoenix/litellm-mirror
build(user.py): fix page param read issue
This commit is contained in:
parent
ff3f3844c7
commit
e1e3721917
2 changed files with 8 additions and 4 deletions
|
@ -1130,7 +1130,10 @@ async def completion(
|
|||
else: # router is not set
|
||||
response = await litellm.atext_completion(**data)
|
||||
|
||||
model_id = response._hidden_params.get("model_id", None) or ""
|
||||
if hasattr(response, "_hidden_params"):
|
||||
model_id = response._hidden_params.get("model_id", None) or ""
|
||||
else:
|
||||
model_id = ""
|
||||
|
||||
print_verbose(f"final response: {response}")
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue