Commit 58191120e3b0
Changed files (1)
tools
ollama-exporter
tools/ollama-exporter/ollama_exporter.py
@@ -171,8 +171,7 @@ async def verify_ollama_connection():
async with httpx.AsyncClient(timeout=httpx.Timeout(10.0)) as client:
response = await client.get(f"{OLLAMA_HOST}/api/version")
if response.status_code == 200:
- version_data = response.json()
- logger.info(f"Connected to Ollama")
+ logger.info("Connected to Ollama")
else:
logger.error(f"Failed to connect to Ollama server. Status code: {response.status_code}")
except Exception as e: