mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-31 20:21:09 +00:00
fix: fix linting errors
This commit is contained in:
@@ -18,6 +18,6 @@ try:
|
||||
# print("Got openai Timeout Exception. Good job. The proxy mapped to OpenAI exceptions")
|
||||
except Exception as e:
|
||||
print("\n the proxy did not map to OpenAI exception. Instead got", e)
|
||||
print(e.type)
|
||||
print(e.message)
|
||||
print(e.code)
|
||||
print(e.type) # type: ignore
|
||||
print(e.message) # type: ignore
|
||||
print(e.code) # type: ignore
|
||||
+1
-1
@@ -52,7 +52,7 @@ class Router:
|
||||
self.set_model_list(model_list)
|
||||
self.healthy_deployments: List = self.model_list
|
||||
self.deployment_latency_map = {}
|
||||
self.cooldown_deployments = {} # {"gpt-3.5-turbo": time.time() when it failed / needed a cooldown}
|
||||
self.cooldown_deployments: dict = {} # {"gpt-3.5-turbo": time.time() when it failed / needed a cooldown}
|
||||
for m in model_list:
|
||||
self.deployment_latency_map[m["litellm_params"]["model"]] = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user