From 597ffd386c7b823f325084261fd65b3ff41f8d17 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 16 Jun 2024 16:15:01 +0100 Subject: [PATCH] Fix TypeError --- jimmy/cogs/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jimmy/cogs/chat.py b/jimmy/cogs/chat.py index 3d36c05..2ca5c97 100644 --- a/jimmy/cogs/chat.py +++ b/jimmy/cogs/chat.py @@ -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],