[GH-ISSUE #5274] API works with non-functional params, no error messages #65341

Open
opened 2026-05-03 20:42:32 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @d-kleine on GitHub (Jun 25, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5274

What is the issue?

The API should only accept the parameters "model", "messages" and "options", but there won't be no error messages displayed if there are also non-functional params, like in this case "seed" or "temperature":

def query_model(prompt, model="llama3", url="http://localhost:11434/api/chat"):
    # Create the data payload as a dictionary
    data = {
        "model": model,
        "seed": 123,        # for deterministic responses
        "temperature": 0,   # for deterministic responses
        "messages": [
            {"role": "user", "content": prompt}
        ]
    }

It would be great if error messages could be displayed if there a non-working params defined in the API request.

OS

Linux, Windows, Docker, WSL2

GPU

Nvidia

CPU

AMD

Ollama version

0.1.45

Originally created by @d-kleine on GitHub (Jun 25, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5274 ### What is the issue? The API should only accept the parameters `"model"`, `"messages"` and `"options"`, but there won't be no error messages displayed if there are also non-functional params, like in this case `"seed"` or `"temperature"`: ```python def query_model(prompt, model="llama3", url="http://localhost:11434/api/chat"): # Create the data payload as a dictionary data = { "model": model, "seed": 123, # for deterministic responses "temperature": 0, # for deterministic responses "messages": [ {"role": "user", "content": prompt} ] } ``` It would be great if error messages could be displayed if there a non-working params defined in the API request. ### OS Linux, Windows, Docker, WSL2 ### GPU Nvidia ### CPU AMD ### Ollama version 0.1.45
GiteaMirror added the bugapi labels 2026-05-03 20:42:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#65341