Fix ollama APi endpoint
All checks were successful
Build and Publish / build_and_publish (push) Successful in 51s

This commit is contained in:
Nexus 2024-06-16 16:10:50 +01:00
parent 448a23affa
commit 290d5c9ccb

View file

@ -329,7 +329,7 @@ class Chat(commands.Cog):
base_url=_cfg["url"],
auth=(_cfg["username"], _cfg["password"])
) as http_client:
response = await http_client.get(f"/threads/threads:{thread_id}")
response = await http_client.get(f"/ollama/thread/threads:{thread_id}")
if response.status_code == 200:
thread = await response.json()
messages = thread["messages"]