Ollama 官方中文文档
    Ollama 官方中文文档
    • 接口 Endpoints
    • 规范 Conventions
    • 生成补全
      • 概括
      • 流式生成请求(Streaming)
        POST
      • 非流式生成请求(No Streaming)
        POST
      • 带后缀的生成请求(with Suffix)
        POST
      • 结构化输出请求(Structured Outputs)
        POST
      • JSON 模式请求(JSON Mode)
        POST
      • 带图像的生成请求(with Images)
        POST
      • 原始模式请求(Raw Mode)
        POST
      • 可复现输出请求(Reproducible Outputs)
        POST
      • 参数化生成请求(with Options)
        POST
      • 加载模型
        POST
      • 卸载模型
        POST
    • 生成对话补全
      • 概括
      • 流式对话请求(Streaming)
        POST
      • 非流式对话请求(No Streaming)
        POST
      • 结构化输出对话请求(Structured Outputs)
        POST
      • 带历史上下文的对话请求(With History)
        POST
      • 带图像的对话请求(with Images)
        POST
      • 可复现输出的对话请求(Reproducible Outputs)
        POST
      • 支持工具调用的对话请求(with Tools)
        POST
      • 加载模型
        POST
      • 卸载模型
        POST
    • 创建模型
      • 概括
      • 创建新模型
        POST
      • 量化模型
        POST
      • 从 GGUF 文件创建模型
        POST
      • 从 Safetensors 目录创建模型
        POST
    • 检查 Blob 是否存在
      • 概括
    • 推送 Blob
      • 概括
    • 列出本地模型
      • 概括
      • 示例
    • 显示模型详情
      • 概括
      • 示例
    • 复制模型
      • 概括
      • 示例
    • 删除模型
      • 概括
      • 示例
    • 拉取模型
      • 概括
      • 示例
    • 推送模型
      • 概括
    • 生成嵌入向量
      • 概括
      • 示例
      • 多输入请求(Multiple Input)
    • 列出运行中模型
      • 概括
      • 示例
    • 生成单个嵌入向量
      • 概括
      • 示例
    • 版本信息
      • 概括

    规范 Conventions

    Conventions#

    Model names#

    Model names follow a model:tag format, where model can have an optional namespace such as example/model. Some examples are orca-mini:3b-q4_1 and llama3:70b. The tag is optional and, if not provided, will default to latest. The tag is used to identify a specific version.

    Durations#

    All durations are returned in nanoseconds.

    Streaming responses#

    Certain endpoints stream responses as JSON objects. Streaming can be disabled by providing {"stream": false} for these endpoints.
    修改于 2025-03-17 08:01:19
    上一页
    接口 Endpoints
    下一页
    概括
    Built with