Compare commits

...

2 Commits

Author SHA1 Message Date
openhands 86ad4d61ef Fix: Add deprecated package to dependencies 2025-07-31 13:31:01 +00:00
openhands 1c10032bc5 Fix litellm_proxy model info error handling 2025-07-31 04:51:20 +00:00
2 changed files with 11 additions and 6 deletions
+10 -6
View File
@@ -461,12 +461,16 @@ class LLM(RetryMixin, DebugMixin):
},
)
resp_json = response.json()
if 'data' not in resp_json:
logger.error(
f'Error getting model info from LiteLLM proxy: {resp_json}'
)
all_model_info = resp_json.get('data', [])
try:
resp_json = response.json()
if 'data' not in resp_json:
logger.info(
f'No data field in model info response from LiteLLM proxy: {resp_json}'
)
all_model_info = resp_json.get('data', [])
except Exception as e:
logger.info(f'Error parsing JSON response from LiteLLM proxy: {e}')
all_model_info = []
current_model_info = next(
(
info
+1
View File
@@ -73,6 +73,7 @@ pythonnet = "*"
fastmcp = "^2.5.2"
python-frontmatter = "^1.1.0"
shellingham = "^1.5.4"
deprecated = "*"
# TODO: Should these go into the runtime group?
ipywidgets = "^8.1.5"
qtconsole = "^5.6.1"