This commit is contained in:
yichuan520030910320
2025-07-21 23:03:52 -07:00
parent 573313f0b6
commit 7fd0a30fee
2 changed files with 11 additions and 2 deletions

View File

@@ -375,8 +375,9 @@ class OllamaChat(LLMInterface):
"stream": False, # Keep it simple for now
"options": kwargs,
}
logger.info(f"Sending request to Ollama: {payload}")
logger.debug(f"Sending request to Ollama: {payload}")
try:
logger.info(f"Sending request to Ollama and waiting for response...")
response = requests.post(full_url, data=json.dumps(payload))
response.raise_for_status()