Fix model refresh (sempre locale)
This commit is contained in:
@@ -43,6 +43,12 @@ async def get_model_info():
|
||||
async def update_model_info():
|
||||
import httpx
|
||||
|
||||
# 🔹 Invalida la cache prima di ricostruire
|
||||
try:
|
||||
redis_service.r.delete("modelInfoList")
|
||||
except Exception:
|
||||
logger.exception("Errore durante la cancellazione della cache Redis")
|
||||
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=settings.REQUEST_TIMEOUT) as client:
|
||||
resp = await client.get(settings.LM_STUDIO_MODELS)
|
||||
|
||||
Reference in New Issue
Block a user