Spaces:
Running
Running
Commit ·
f876fb4
1
Parent(s): adae421
fix(runtime): make startup model cache warming non-fatal on unconfigured providers
Browse files
src/free_claude_code/runtime/application.py
CHANGED
|
@@ -138,7 +138,10 @@ class ApplicationRuntime:
|
|
| 138 |
logger.info("Starting Claude Code Proxy...")
|
| 139 |
try:
|
| 140 |
warn_if_process_auth_token(self.settings)
|
| 141 |
-
|
|
|
|
|
|
|
|
|
|
| 142 |
self.provider_manager.start_model_list_refresh()
|
| 143 |
await self._start_messaging_if_configured()
|
| 144 |
logging.getLogger("uvicorn.error").info(
|
|
|
|
| 138 |
logger.info("Starting Claude Code Proxy...")
|
| 139 |
try:
|
| 140 |
warn_if_process_auth_token(self.settings)
|
| 141 |
+
try:
|
| 142 |
+
await self.provider_manager.warm_referenced_model_cache()
|
| 143 |
+
except Exception as exc:
|
| 144 |
+
logger.warning("Configured model cache warming skipped: {}", exc)
|
| 145 |
self.provider_manager.start_model_list_refresh()
|
| 146 |
await self._start_messaging_if_configured()
|
| 147 |
logging.getLogger("uvicorn.error").info(
|