[GH-ISSUE #4918] /api/show params showing as deformed string #28867

Closed
opened 2026-04-22 07:25:36 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @royjhan on GitHub (Jun 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4918

Originally assigned to: @royjhan on GitHub.

What is the issue?

Example: "llama3"
{
"num_keep": 24,
"stop": [
"<|start_header_id|>",
"<|end_header_id|>",
"<|eot_id|>"
]
}

is showing

"parameters": "num_keep 24\nstop "<|start_header_id|>"\nstop "<|end_header_id|>"\nstop "<|eot_id|>"",

from the endpoint

"stop" is repeated for every element in the slice, in general not in clean json

OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @royjhan on GitHub (Jun 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4918 Originally assigned to: @royjhan on GitHub. ### What is the issue? Example: "llama3" { "num_keep": 24, "stop": [ "<|start_header_id|>", "<|end_header_id|>", "<|eot_id|>" ] } is showing "parameters": "num_keep 24\nstop \"<|start_header_id|>\"\nstop \"<|end_header_id|>\"\nstop \"<|eot_id|>\"", from the endpoint "stop" is repeated for every element in the slice, in general not in clean json ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-22 07:25:36 -05:00
Author
Owner

@royjhan commented on GitHub (Jul 11, 2024):

Will revisit at a later time

<!-- gh-comment-id:2223492090 --> @royjhan commented on GitHub (Jul 11, 2024): Will revisit at a later time
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#28867