mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
build(user.py): fix page param read issue
This commit is contained in:
parent
b73e6317b2
commit
4c4e8d0290
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