mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
404 on /api/chat #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leolivier on GitHub (Jan 28, 2024).
Hi,
I started ollama serve w/o issue
Then I tried
ollama.list()which returned the 3 models I have pulled with a 200 code on /api/tags. One of these models is 'mistral:latest'Then I tried
ollama.show('mistral')and it returned an object with a license, a modelfile, ... and a code 200 on /api/showUp to now, everything fine...
Then I tried the chat example code:
and here I get a 404 code on /api/chat
In the ollama server terminal:
Than I tried:
which worked fine (code 200 on /api/generate')
So why a 404 on /api/chat? Is it because of an error in the lib or because mistral does provide a chat API?
@leolivier commented on GitHub (Jan 28, 2024):
Update: I was running ollama 0.1.9. After updating to 0.1.22, it started working...