[GH-ISSUE #6012] /api/chat API returns empty information #3761

Closed
opened 2026-04-12 14:35:03 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @du-kk on GitHub (Jul 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/6012

environment:
OS: UOS Linux
GPU:NVIDIA L20
Ollama version:0.2.8

issue
input: curl 127.0.0.1:11434/api/generate - d '{"model": "qwen2:0.5b", "pormpt": "who are you?", "format": "json", "stream": false}'
always returns
{"model": "qwen2:0.5b", "creatd_at": "2024-07-27T08:46:47.54755Z", "response": "" "," done ": true," done_ reason ":" load "}

There are no error messages in Journalctl - u ollama, only one request message
gpu1 ollama[30085]: [GIN] 2024/07/27 - 16:44:36 | 200 | 39.405859ms | 23.36.75.155 | POST "/api/chat"

Please help me, thank you

Originally created by @du-kk on GitHub (Jul 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/6012 environment: OS: UOS Linux GPU:NVIDIA L20 Ollama version:0.2.8 issue input: curl 127.0.0.1:11434/api/generate - d '{"model": "qwen2:0.5b", "pormpt": "who are you?", "format": "json", "stream": false}' always returns {"model": "qwen2:0.5b", "creatd_at": "2024-07-27T08:46:47.54755Z", "response": "" "," done ": true," done_ reason ":" load "} There are no error messages in Journalctl - u ollama, only one request message gpu1 ollama[30085]: [GIN] 2024/07/27 - 16:44:36 | 200 | 39.405859ms | 23.36.75.155 | POST "/api/chat" Please help me, thank you
GiteaMirror added the feature request label 2026-04-12 14:35:03 -05:00
Author
Owner

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

You wrote "pormpt".

<!-- gh-comment-id:2254094980 --> @Apokalypser commented on GitHub (Jul 27, 2024): You wrote "pormpt".
Author
Owner

@du-kk commented on GitHub (Jul 27, 2024):

You wrote "pormpt".

Thank you for pointing out my spelling mistake

<!-- gh-comment-id:2254123952 --> @du-kk commented on GitHub (Jul 27, 2024): > You wrote "pormpt". Thank you for pointing out my spelling mistake
Author
Owner

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

Thank you for pointing out my spelling mistake

If your issue is resolved please consider closing the issue.

<!-- gh-comment-id:2254271876 --> @thinkverse commented on GitHub (Jul 27, 2024): > Thank you for pointing out my spelling mistake If your issue is resolved please consider closing the issue.
Author
Owner

@du-kk commented on GitHub (Jul 28, 2024):

Sorry

<!-- gh-comment-id:2254527961 --> @du-kk commented on GitHub (Jul 28, 2024): Sorry
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3761