marks
commited on
Commit
·
0954ce6
1
Parent(s):
f71cd77
Added logger statement for debugging
Browse files- api_clients.py +1 -0
api_clients.py
CHANGED
|
@@ -62,6 +62,7 @@ class OpenRouterClient:
|
|
| 62 |
)
|
| 63 |
response.raise_for_status()
|
| 64 |
models = [OpenRouterModel(**model) for model in response.json()["data"]]
|
|
|
|
| 65 |
return [(model.id, model.name) for model in models]
|
| 66 |
|
| 67 |
@log_async_execution_time(logger)
|
|
|
|
| 62 |
)
|
| 63 |
response.raise_for_status()
|
| 64 |
models = [OpenRouterModel(**model) for model in response.json()["data"]]
|
| 65 |
+
logger.info(f"Successfully fetched {len(models)} models")
|
| 66 |
return [(model.id, model.name) for model in models]
|
| 67 |
|
| 68 |
@log_async_execution_time(logger)
|