fix: resolve bugs 01 through 08 and set Ollama TTL to 1h
This commit is contained in:
@@ -576,7 +576,7 @@ async def generate_lesson_ai_debrief(
|
||||
|
||||
try:
|
||||
client = get_ollama_client()
|
||||
resp = await client.post(f"{config.OLLAMA_BASE_URL}/api/generate", json=payload, timeout=25.0)
|
||||
resp = await client.post(f"{config.OLLAMA_BASE_URL}/api/generate", json=payload, timeout=10.0)
|
||||
if resp.status_code == 200:
|
||||
raw_response = resp.json().get("response", "{}")
|
||||
# Parse JSON
|
||||
|
||||
Reference in New Issue
Block a user