forked from phoenix/litellm-mirror
Update main.py
This commit is contained in:
parent
de72df712e
commit
e7d74b3d1a
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,7 @@ def api_completion():
|
|||
try:
|
||||
# pass in data to completion function, unpack data
|
||||
selected_llm = random.choices(list(llm_dict.keys()), weights=list(llm_dict.values()))[0]
|
||||
data['model'] = selected_llm
|
||||
response = completion(**data)
|
||||
response = completion(**data, model=selected_llm)
|
||||
except Exception as e:
|
||||
print(f"got error{e}")
|
||||
return response, 200
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue