-
-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Shimmy Version
shimmy 0.1.0 (on master 43236f7)
Installation Method
Built from source
What happened?
When I send message via curl, prompt "tell me joke" it seems only show user message, but not generating assistant message, see logs.
Steps to Reproduce
curl -H "Content-Type: application/json" http://localhost:11435/v1/chat/completions -d '{ "model": "qwen2.5:1.5b", "messages": [{"role": "user", "content": "tell me a joke"}] }'
Relevant logs
> curl -H "Content-Type: application/json" http://localhost:11435/v1/chat/completions -d '{ "model": "qwen2.5:1.5b", "messages": [{"role": "user", "content": "tell me a joke"}] }'
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":null,"role":"assistant"},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":"user","role":null},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":"\n","role":null},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":"tell","role":null},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":" me","role":null},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":" a","role":null},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":" joke","role":null},"finish_reason":null}]}
data:
data:
data: data: {"id":"chatcmpl-cca1fe9f6b3147bfa64dcce84a0a41f6","object":"chat.completion.chunk","created":1757358088,"model":"qwen2.5:1.5b","choices":[{"index":0,"delta":{"content":null,"role":null},"finish_reason":"stop"}]}
data:
data:
data: data: [DONE]
data:
data:
Here is Ollama response which is correct:
> curl -H "Content-Type: application/json" http://localhost:11434/v1/chat/completions -d '{ "model": "qwen2.5:1.5b", "messages": [{"role": "user", "content": "tell me a joke"}] }'
{"id":"chatcmpl-715","object":"chat.completion","created":1757358169,"model":"qwen2.5:1.5b","system_fingerprint":"fp_ollama","choices":[{"index":0,"message":{"role":"assistant","content":"Sure! Here's one for you:\n\nWhy did the tomato turn red? Because it saw the salad dressing!\nI hope this makes your day lighter! Let me know if you want any more jokes or help with anything else today."},"finish_reason":"stop"}],"usage":{"prompt_tokens":33,"completion_tokens":47,"total_tokens":80}}
Operating System
macOS (Apple Silicon)
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working