[GH-ISSUE #9985] Discrepancy Between API Documentation and Actual Response: name vs model Field #32302

Closed
opened 2026-04-22 13:25:45 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @CristianoMafraJunior on GitHub (Mar 25, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9985

What is the issue?

When using the Ollama API via Docker, the documentation states that the /api/tags endpoint should return a list of models with a name field. However, in practice, the response uses model instead of name, as observed in the Docker implementation. This inconsistency breaks compatibility with the official documentation and causes confusion.

Relevant log output

docker run -d -p 11434:11434 ollama/ollama 

curl http://localhost:11434/api/tags  

{  
  "models": [  
    {  
      "model": "llama2:latest",   
      "modified_at": "2023-11-04T14:56:49.277302595-07:00",  
      "size": 7365960935,  
      "digest": "9f438cb9cd581fc025612d27f7c1a6669ff83a8bb0ed86c94fcf4c5440555697",  
      "details": { ... }  
    }  
  ]  
}

OS

WSL2

GPU

Intel

CPU

AMD

Ollama version

No response

Originally created by @CristianoMafraJunior on GitHub (Mar 25, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9985 ### What is the issue? When using the Ollama API via Docker, the documentation states that the /api/tags endpoint should return a list of models with a name field. However, in practice, the response uses model instead of name, as observed in the Docker implementation. This inconsistency breaks compatibility with the official documentation and causes confusion. ### Relevant log output ```shell docker run -d -p 11434:11434 ollama/ollama curl http://localhost:11434/api/tags { "models": [ { "model": "llama2:latest", "modified_at": "2023-11-04T14:56:49.277302595-07:00", "size": 7365960935, "digest": "9f438cb9cd581fc025612d27f7c1a6669ff83a8bb0ed86c94fcf4c5440555697", "details": { ... } } ] } ``` ### OS WSL2 ### GPU Intel ### CPU AMD ### Ollama version _No response_
GiteaMirror added the documentationbug labels 2026-04-22 13:25:45 -05:00
Author
Owner

@rick-github commented on GitHub (Mar 26, 2025):

ollama has returned a "name" field (as well as "model") since at least 0.1.30:

$ docker exec ollama ollama -v
ollama version is 0.1.30
$ curl -s localhost:11434/api/tags | jq | head
{
  "models": [
    {
      "name": "hf-mirror.com/unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF:q4_k_m",
      "model": "hf-mirror.com/unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF:q4_k_m",
      "modified_at": "2025-02-21T09:56:07.96036128Z",
      "size": 8988110671,
      "digest": "49124fc2c622237675273a842019e83bd327d4d6c2d6e076378ca07ec7579d05",
      "details": {
        "parent_model": "",
$ docker exec ollama ollama -v
ollama version is 0.6.2
$ curl -s localhost:11434/api/tags | jq | head
{
  "models": [
    {
      "name": "llama-guard3:8b-fp16",
      "model": "llama-guard3:8b-fp16",
      "modified_at": "2025-03-26T01:04:32.885089372Z",
      "size": 16068902111,
      "digest": "6945df9ed1fe28a6dcdc21453f96e6e06f6a83686cffcf8e8eaeb8c03edb507b",
      "details": {
        "parent_model": "",

<!-- gh-comment-id:2755358155 --> @rick-github commented on GitHub (Mar 26, 2025): ollama has returned a "name" field (as well as "model") since at least 0.1.30: ``` $ docker exec ollama ollama -v ollama version is 0.1.30 $ curl -s localhost:11434/api/tags | jq | head { "models": [ { "name": "hf-mirror.com/unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF:q4_k_m", "model": "hf-mirror.com/unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF:q4_k_m", "modified_at": "2025-02-21T09:56:07.96036128Z", "size": 8988110671, "digest": "49124fc2c622237675273a842019e83bd327d4d6c2d6e076378ca07ec7579d05", "details": { "parent_model": "", ``` ``` $ docker exec ollama ollama -v ollama version is 0.6.2 $ curl -s localhost:11434/api/tags | jq | head { "models": [ { "name": "llama-guard3:8b-fp16", "model": "llama-guard3:8b-fp16", "modified_at": "2025-03-26T01:04:32.885089372Z", "size": 16068902111, "digest": "6945df9ed1fe28a6dcdc21453f96e6e06f6a83686cffcf8e8eaeb8c03edb507b", "details": { "parent_model": "", ```
Author
Owner

@CristianoMafraJunior commented on GitHub (Mar 27, 2025):

Thank you, I will check the implementation of my system. Thanks for the response.

<!-- gh-comment-id:2756040394 --> @CristianoMafraJunior commented on GitHub (Mar 27, 2025): Thank you, I will check the implementation of my system. Thanks for the response.
Author
Owner

@adar2378 commented on GitHub (Mar 28, 2025):

@rick-github If you will look here, it does have model instead of name here :/

07eec6d517/ollama/_types.py (L435)

<!-- gh-comment-id:2762084411 --> @adar2378 commented on GitHub (Mar 28, 2025): @rick-github If you will look here, it does have `model` instead of `name` here :/ https://github.com/ollama/ollama-python/blob/07eec6d517b95ef49fda672d8a533cb01a56b2fa/ollama/_types.py#L435
Author
Owner

@rick-github commented on GitHub (Mar 28, 2025):

That's ollama-python.

<!-- gh-comment-id:2762088083 --> @rick-github commented on GitHub (Mar 28, 2025): That's ollama-python.
Author
Owner

@adar2378 commented on GitHub (Mar 28, 2025):

@rick-github Oh yes, right. I will create ticket on that repository. sorry.

<!-- gh-comment-id:2762088900 --> @adar2378 commented on GitHub (Mar 28, 2025): @rick-github Oh yes, right. I will create ticket on that repository. sorry.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#32302