# 卸载模型

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/generate:
    post:
      summary: 卸载模型
      deprecated: false
      description: >-
        If an empty prompt is provided and the `keep_alive` parameter is set to
        `0`, a model will be unloaded from memory.
      tags:
        - 生成补全
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - llama3.2
                  examples:
                    - llama3.2
                keep_alive:
                  type: integer
                  minimum: 0
              required:
                - model
                - keep_alive
              x-apifox-orders:
                - model
                - keep_alive
      responses:
        '200':
          description: 'A single JSON object is returned:'
          content:
            application/json:
              schema:
                type: object
                properties:
                  model:
                    type: string
                  created_at:
                    type: string
                  response:
                    type: string
                  done:
                    type: boolean
                  done_reason:
                    type: string
                required:
                  - model
                  - created_at
                  - response
                  - done
                  - done_reason
                x-apifox-orders:
                  - model
                  - created_at
                  - response
                  - done
                  - done_reason
              example:
                model: llama3.2
                created_at: '2024-09-12T03:54:03.516566Z'
                response: ''
                done: true
                done_reason: unload
          headers: {}
          x-apifox-name: Success
      security: []
      x-apifox-folder: 生成补全
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6041320/apis/api-272428822-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://localhost:11434/api/
    description: 正式环境
security: []

```
