[GH-ISSUE #1408] 404 error for api requests (docker llama/latest) #62786

Closed
opened 2026-05-03 10:18:51 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @tbirand on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1408

I wanted to make a separate issue here as this was mentioned by a few in another issue that is closed.

Step 1. Spin up a container from the ollama/latest docker image
Step 2. Run

curl http://localhost:11434/api/chat -d '{
  "model": "mistral",
  "messages": [
    { "role": "user", "content": "why is the sky blue?" }
  ]
}'

Step 3. See the 404 error

Originally created by @tbirand on GitHub (Dec 6, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1408 I wanted to make a separate issue here as this was mentioned by a few in another issue that is closed. Step 1. Spin up a container from the ollama/latest docker image Step 2. Run ``` curl http://localhost:11434/api/chat -d '{ "model": "mistral", "messages": [ { "role": "user", "content": "why is the sky blue?" } ] }' ``` Step 3. See the 404 error
Author
Owner

@mxyng commented on GitHub (Dec 6, 2023):

The chat api hasn't been released yet so the latest docker image will not support it. A release is scheduled for the next couple of days at which time the docker image will be updated.

In the mean time, /api/chat is only available when building from source

<!-- gh-comment-id:1843796116 --> @mxyng commented on GitHub (Dec 6, 2023): The chat api hasn't been released yet so the latest docker image will not support it. A release is scheduled for the next couple of days at which time the docker image will be updated. In the mean time, `/api/chat` is only available when building from source
Author
Owner

@tbirand commented on GitHub (Dec 6, 2023):

Amazing, thanks @mxyng

<!-- gh-comment-id:1843837131 --> @tbirand commented on GitHub (Dec 6, 2023): Amazing, thanks @mxyng
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#62786