mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 11:04:32 +00:00
try/catch for model_cost_map
This commit is contained in:
+3
-2
@@ -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 ###################
|
||||
|
||||
Reference in New Issue
Block a user