[GH-ISSUE #1241] Multi-line prompting from CLI issue - not waiting for closing """ #632

Closed
opened 2026-04-12 10:19:59 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ken-vat on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1241

THe engine started to spew out code before ending the multi-line with closing """. as an example -

"""
... can you give python code to use this API using the python requests package/library
... curl -X POST
... --url "localhost:5000/v1/..."
... --header "Content-Type: application/json"
... --data '
... {
... "chat": "string"
... }
... '

Here is an example of how you can use the requests package in Python to make a POST request to the /v1/completions
endpoint ...

It started response right after this curl command before giving closing """

Originally created by @ken-vat on GitHub (Nov 22, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1241 THe engine started to spew out code before ending the multi-line with closing """. as an example - >>> """ ... can you give python code to use this API using the python requests package/library ... curl -X POST \ ... --url "localhost:5000/v1/..." \ ... --header "Content-Type: application/json" \ ... --data ' ... { ... "chat": "string" ... } ... ' Here is an example of how you can use the `requests` package in Python to make a POST request to the `/v1/completions` endpoint ... It started response right after this curl command before giving closing """
GiteaMirror added the bug label 2026-04-12 10:19:59 -05:00
Author
Owner

@mxyng commented on GitHub (Jan 18, 2024):

This should be fixed by #1614

<!-- gh-comment-id:1897523936 --> @mxyng commented on GitHub (Jan 18, 2024): This should be fixed by #1614
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#632