try/catch for model_cost_map

This commit is contained in:
ishaan-jaff
2023-09-10 16:04:17 -07:00
parent ef209c1643
commit 755c19aa0c
+3 -2
View File
@@ -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 ###################