diff --git a/backend/open_webui/routers/ollama.py b/backend/open_webui/routers/ollama.py index a4e166ba9e..dbfadf6608 100644 --- a/backend/open_webui/routers/ollama.py +++ b/backend/open_webui/routers/ollama.py @@ -434,7 +434,7 @@ async def get_ollama_loaded_models( for idx, response in enumerate(responses): if not response: continue - api_config = _resolve_api_config(request.app.state.config, idx, request.app.state.config.OLLAMA_BASE_URLS[idx]) + api_config = _resolve_api_config(request, idx, request.app.state.config.OLLAMA_BASE_URLS[idx]) prefix_id = api_config.get('prefix_id') if prefix_id: for m in response.get('models', []):