{
  "id": "ollama",
  "name": "Ollama",
  "homepage": "https://ollama.com",
  "description": "Start building with open models.",
  "icon": "SimpleIcons:ollama",
  "executables": [
    "ollama"
  ],
  "dotfiles": {
    "paths": [
      "~/.ollama/server.json"
    ],
    "exclude": [
      "~/.ollama/models/",
      "~/.ollama/history"
    ],
    "secret": [
      "~/.ollama/id_ed25519"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Ollama",
    "description": "Run, inspect and remove local models. Serving, pulling, pushing and Modelfile creation are left out.",
    "quality": "ai-draft",
    "base": "fig:ollama",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run a model",
        "description": "Chat with a model.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "model",
            "label": "Model",
            "description": "Model name, for example llama3.2.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "description": "Show timings and token statistics.",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run a model",
            "fields": [
              "model",
              "verbose"
            ],
            "required": [
              "model"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "model",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "show"
        ],
        "label": "Show model info",
        "description": "Show information for a model.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "model",
            "label": "Model",
            "description": "Model name, for example llama3.2.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "show",
            "label": "Show a model",
            "fields": [
              "model"
            ],
            "required": [
              "model"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "model"
            ]
          }
        ]
      },
      {
        "path": [
          "rm"
        ],
        "label": "Remove a model",
        "description": "Delete a local model.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ollama.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "model",
            "label": "Model",
            "description": "Model name, for example llama3.2.",
            "type": "string",
            "position": 0,
            "effect": "delete",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "rm",
            "label": "Remove a model",
            "fields": [
              "model"
            ],
            "required": [
              "model"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "model"
            ]
          }
        ]
      }
    ]
  }
}
