Fix TypeError
All checks were successful
Build and Publish / build_and_publish (push) Successful in 49s

This commit is contained in:
Nexus 2024-06-16 16:15:01 +01:00
parent 290d5c9ccb
commit 597ffd386c

View file

@ -331,7 +331,7 @@ class Chat(commands.Cog):
) as http_client:
response = await http_client.get(f"/ollama/thread/threads:{thread_id}")
if response.status_code == 200:
thread = await response.json()
thread = response.json()
messages = thread["messages"]
thread = OllamaThread(
messages=[{"role": m["role"], "content": m["content"]} for m in messages],