[GH-ISSUE #13255] Apostrophe 'S' on tool-calling.mdx Page Causes curl Request Example to Not Complete #55276

Closed
opened 2026-04-29 08:43:10 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @nathan-hook on GitHub (Nov 26, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13255

What is the issue?

The following curl example on the tool-calling.mdx page has an apostrophe s in it that causes the curl request not to finish:

curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{ "model": "qwen3", "messages": [ {"role": "user", "content": "What's the temperature in New York?"}, { "role": "assistant", "tool_calls": [ { "type": "function", "function": { "index": 0, "name": "get_temperature", "arguments": {"city": "New York"} } } ] }, {"role": "tool", "tool_name": "get_temperature", "content": "22°C"} ], "stream": false }'

When running the above command, the end user is shown the following prompt on their command line:

dquote>

If the question is changed to:

What is the temperature in New York?

Or, the apostrophe s is properly escaped:

What'\''s the temperature in New York?

Then the curl command completes successfully.

Relevant log output


OS

macOS

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @nathan-hook on GitHub (Nov 26, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13255 ### What is the issue? The following curl example on the tool-calling.mdx page has an apostrophe s in it that causes the curl request not to finish: ` curl -s http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{ "model": "qwen3", "messages": [ {"role": "user", "content": "What's the temperature in New York?"}, { "role": "assistant", "tool_calls": [ { "type": "function", "function": { "index": 0, "name": "get_temperature", "arguments": {"city": "New York"} } } ] }, {"role": "tool", "tool_name": "get_temperature", "content": "22°C"} ], "stream": false }' ` When running the above command, the end user is shown the following prompt on their command line: `dquote>` If the question is changed to: `What is the temperature in New York?` Or, the apostrophe s is properly escaped: `What'\''s the temperature in New York?` Then the curl command completes successfully. ### Relevant log output ```shell ``` ### OS macOS ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-29 08:43:10 -05:00
Author
Owner

@nathan-hook commented on GitHub (Nov 26, 2025):

Created a pull request that changed all the "What's the temperature in New York?" to "What is the temperature in New York?"

https://github.com/ollama/ollama/pull/13256

<!-- gh-comment-id:3582394546 --> @nathan-hook commented on GitHub (Nov 26, 2025): Created a pull request that changed all the "What's the temperature in New York?" to "What is the temperature in New York?" https://github.com/ollama/ollama/pull/13256
Author
Owner

@pdevine commented on GitHub (Dec 2, 2025):

Thank's for the issue/PR!

<!-- gh-comment-id:3604325356 --> @pdevine commented on GitHub (Dec 2, 2025): Thank\'s for the issue/PR!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#55276