Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://localhost:11434/api endpoint giving 404 error #4200

Closed
ritesh7911 opened this issue May 6, 2024 · 3 comments
Closed

http://localhost:11434/api endpoint giving 404 error #4200

ritesh7911 opened this issue May 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@ritesh7911
Copy link

What is the issue?

I am using latest version of windows . As per readme file when I am hitting http://localhost:11434 i am getting "ollama is running" but "http://localhost:11434/api" is giving error 404

OS

Windows

GPU

AMD

CPU

Intel

Ollama version

0.1.33

@ritesh7911 ritesh7911 added the bug Something isn't working label May 6, 2024
@swapnil34
Copy link

swapnil34 commented May 7, 2024

I am experiencing issues with API endpoint as well. Here is the server log:

[GIN] 2024/05/07 - 07:41:01 | 200 | 4.894709434s | 127.0.0.1 | POST "/api/chat"
[GIN] 2024/05/07 - 07:41:07 | 404 | 9.017µs | 127.0.0.1 | GET "/api/generate/"
[GIN] 2024/05/07 - 07:41:13 | 200 | 10.527µs | 127.0.0.1 | GET "/"

See 404 error for api endpoint above

Ollama version: 0.1.33
OS: Mac

@swapnil34
Copy link

Solution: The API endpoint doesn't respond to GET requests, POST requests seem to be working.

@dhiltgen
Copy link
Collaborator

dhiltgen commented May 8, 2024

@ritesh7911 are you trying to use GET to this API? See https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-completion for usage information.

If it isn't working as described in the API docs, please share more information about how you're calling it and I'll re-open the issue.

@dhiltgen dhiltgen closed this as completed May 8, 2024
@dhiltgen dhiltgen self-assigned this May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants