feat: bump project version to 1.28.0 across all configuration files and package manifests
This commit is contained in:
+2
-1
@@ -97,7 +97,8 @@ def list_models(model_list_url, api_key):
|
||||
response = http_client.get(model_list_url, headers=headers, db_conn=None)
|
||||
if response.get("error"):
|
||||
return {"error": response.get("text", "HTTP error")}
|
||||
data = json.loads(response["text"])
|
||||
response_data = response["text"]
|
||||
data = json.loads(response_data)
|
||||
return data.get("data", [])
|
||||
except Exception as e:
|
||||
return {"error": str(e)}
|
||||
|
||||
Reference in New Issue
Block a user