mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-11 13:20:58 +00:00
style(provider): format model manager
This commit is contained in:
@@ -95,9 +95,7 @@ class ModelManager:
|
|||||||
else:
|
else:
|
||||||
await self.sync_new_models_from_space()
|
await self.sync_new_models_from_space()
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
self.ap.logger.warning(
|
self.ap.logger.warning(f'LangBot Space model sync timed out after {sync_timeout}s, skipping startup sync.')
|
||||||
f'LangBot Space model sync timed out after {sync_timeout}s, skipping startup sync.'
|
|
||||||
)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.ap.logger.warning('Failed to sync new models from LangBot Space, model list may not be updated.')
|
self.ap.logger.warning('Failed to sync new models from LangBot Space, model list may not be updated.')
|
||||||
self.ap.logger.warning(f' - Error: {e}')
|
self.ap.logger.warning(f' - Error: {e}')
|
||||||
|
|||||||
Reference in New Issue
Block a user