[PR #5485] [CLOSED] Update api.md #11797

Closed
opened 2026-04-12 23:39:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5485
Author: @chyok
Created: 7/4/2024
Status: Closed

Base: mainHead: update-api-doc


📝 Commits (1)

  • 037fb71 Update list local models API

📊 Changes

1 file changed (+7 additions, -3 deletions)

View changed files

📝 docs/api.md (+7 -3)

📄 Description

Update the documentation according to the latest API.

curl http://localhost:11434/v1/tags

{
  "models": [
    {
      "name": "codellama:latest",
      "model": "codellama:latest",
      "modified_at": "2024-07-04T22:48:10.8105706+08:00",
      "size": 3825910662,
      "digest": "8fdf8f752f6e80de33e82f381aba784c025982752cd1ae9377add66449d2225f",
      "details": {
        "parent_model": "",
        "format": "gguf",
        "family": "llama",
        "families": null,
        "parameter_size": "7B",
        "quantization_level": "Q4_0"
      }
    },
    {
      "name": "gemma2:27b",
      "model": "gemma2:27b",
      "modified_at": "2024-07-04T22:13:56.6074799+08:00",
      "size": 15628387569,
      "digest": "371038893ee3aeecdd361850ba3a13c3f1f08f5e0c448ac11927ea15809b2b6b",
      "details": {
        "parent_model": "",
        "format": "gguf",
        "family": "gemma2",
        "families": [
          "gemma2"
        ],
        "parameter_size": "27.2B",
        "quantization_level": "Q4_0"
      }
    },
    {
      "name": "gemma2:latest",
      "model": "gemma2:latest",
      "modified_at": "2024-06-28T20:51:21.2480459+08:00",
      "size": 5453010625,
      "digest": "6008d85d064649fd1980f730982f767b09d30848d00248fc51cb7d53536504de",
      "details": {
        "parent_model": "",
        "format": "gguf",
        "family": "gemma2",
        "families": [
          "gemma2"
        ],
        "parameter_size": "9.2B",
        "quantization_level": "Q4_0"
      }
    },
    {
      "name": "llama3:latest",
      "model": "llama3:latest",
      "modified_at": "2024-06-15T19:51:19.4751104+08:00",
      "size": 4661224676,
      "digest": "365c0bd3c000a25d28ddbf732fe1c6add414de7275464c4e4d1c3b5fcb5d8ad1",
      "details": {
        "parent_model": "",
        "format": "gguf",
        "family": "llama",
        "families": [
          "llama"
        ],
        "parameter_size": "8.0B",
        "quantization_level": "Q4_0"
      }
    }
  ]
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5485 **Author:** [@chyok](https://github.com/chyok) **Created:** 7/4/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `update-api-doc` --- ### 📝 Commits (1) - [`037fb71`](https://github.com/ollama/ollama/commit/037fb713e9ecfc4069d75efb7ca5f5a32b1149ef) Update list local models API ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/api.md` (+7 -3) </details> ### 📄 Description Update the documentation according to the latest API. `curl http://localhost:11434/v1/tags` ```json { "models": [ { "name": "codellama:latest", "model": "codellama:latest", "modified_at": "2024-07-04T22:48:10.8105706+08:00", "size": 3825910662, "digest": "8fdf8f752f6e80de33e82f381aba784c025982752cd1ae9377add66449d2225f", "details": { "parent_model": "", "format": "gguf", "family": "llama", "families": null, "parameter_size": "7B", "quantization_level": "Q4_0" } }, { "name": "gemma2:27b", "model": "gemma2:27b", "modified_at": "2024-07-04T22:13:56.6074799+08:00", "size": 15628387569, "digest": "371038893ee3aeecdd361850ba3a13c3f1f08f5e0c448ac11927ea15809b2b6b", "details": { "parent_model": "", "format": "gguf", "family": "gemma2", "families": [ "gemma2" ], "parameter_size": "27.2B", "quantization_level": "Q4_0" } }, { "name": "gemma2:latest", "model": "gemma2:latest", "modified_at": "2024-06-28T20:51:21.2480459+08:00", "size": 5453010625, "digest": "6008d85d064649fd1980f730982f767b09d30848d00248fc51cb7d53536504de", "details": { "parent_model": "", "format": "gguf", "family": "gemma2", "families": [ "gemma2" ], "parameter_size": "9.2B", "quantization_level": "Q4_0" } }, { "name": "llama3:latest", "model": "llama3:latest", "modified_at": "2024-06-15T19:51:19.4751104+08:00", "size": 4661224676, "digest": "365c0bd3c000a25d28ddbf732fe1c6add414de7275464c4e4d1c3b5fcb5d8ad1", "details": { "parent_model": "", "format": "gguf", "family": "llama", "families": [ "llama" ], "parameter_size": "8.0B", "quantization_level": "Q4_0" } } ] } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:39:08 -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#11797