diff --git a/src/dolphin_mcp/providers/ollama.py b/src/dolphin_mcp/providers/ollama.py index b89aac1..bf819a7 100644 --- a/src/dolphin_mcp/providers/ollama.py +++ b/src/dolphin_mcp/providers/ollama.py @@ -520,8 +520,8 @@ async def call_ollama_api( # Determine host and construct URL host = DEFAULT_API_HOST - if client and hasattr(client, 'host'): - host = client.host + if client and hasattr(client._client, 'base_url'): + host = client._client.base_url api_url = f"{host}/api/chat" logger.debug(f"Target API URL: {api_url}")