mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
try/catch for model_cost_map
This commit is contained in:
parent
ef209c1643
commit
755c19aa0c
1 changed files with 3 additions and 2 deletions
|
|
@ -47,8 +47,9 @@ def get_model_cost_map():
|
|||
content = response.json()
|
||||
return content
|
||||
except requests.exceptions.RequestException as e:
|
||||
print("Error occurred:", e)
|
||||
return None
|
||||
return {}
|
||||
except:
|
||||
return {}
|
||||
model_cost = get_model_cost_map()
|
||||
custom_prompt_dict:Dict[str, dict] = {}
|
||||
####### THREAD-SPECIFIC DATA ###################
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue