Fix TypeError
All checks were successful
Build and Publish / build_and_publish (push) Successful in 49s
All checks were successful
Build and Publish / build_and_publish (push) Successful in 49s
This commit is contained in:
parent
290d5c9ccb
commit
597ffd386c
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue