This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-13 00:07:31 -06:00
1 parent 3813fd4cdc
commit 85c3d0ae2f
10 files changed
+897 -21

No files matched your search

+4
View File
@@ -71,6 +71,10 @@ async def get_all_models(request, refresh: bool = False, user: UserModel = None)
'evaluation.arena.models',
'models.default_metadata',
)
if refresh:
await openai.get_all_models.cache.clear()
await ollama.get_all_models.cache.clear()
if (
request.app.state.MODELS
and request.app.state.BASE_MODELS