[GH-ISSUE #6013] Getting 404 page not found on chat completions endpoint with new version #50273

Closed
opened 2026-04-28 14:55:51 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ajasingh on GitHub (Jul 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6013

What is the issue?

I am sucessfully running llama3.1 model locally in command prompt but when i try to access it via api it keeps giving 404 not found to me

curl --location --request GET 'http://localhost:11434/v1/chat/completions'
--header 'Content-Type: application/json'
--data '{
"model": "llama3.1",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant, you are required to analyse the chat history betweeen Equinix Support agent and the customer.Kindly analyse the chat history and provide what problem the user is facing. Kinldy only return the problem user is facing nothing else"
},
{
"role": "user",
"content": "Thanks for your patience"
}
]
}'

OS

macOS

GPU

No response

CPU

No response

Ollama version

0.3.0

Originally created by @ajasingh on GitHub (Jul 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6013 ### What is the issue? I am sucessfully running llama3.1 model locally in command prompt but when i try to access it via api it keeps giving 404 not found to me curl --location --request GET 'http://localhost:11434/v1/chat/completions' \ --header 'Content-Type: application/json' \ --data '{ "model": "llama3.1", "messages": [ { "role": "system", "content": "You are a helpful assistant, you are required to analyse the chat history betweeen Equinix Support agent and the customer.Kindly analyse the chat history and provide what problem the user is facing. Kinldy only return the problem user is facing nothing else" }, { "role": "user", "content": "Thanks for your patience" } ] }' ### OS macOS ### GPU _No response_ ### CPU _No response_ ### Ollama version 0.3.0
GiteaMirror added the bug label 2026-04-28 14:55:51 -05:00
Author
Owner

@ajasingh commented on GitHub (Jul 27, 2024):

My mistake i was sending Get instead of POST

<!-- gh-comment-id:2254095757 --> @ajasingh commented on GitHub (Jul 27, 2024): My mistake i was sending Get instead of POST
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#50273