# 加载模型

## 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, the model will be loaded into memory.
      tags:
        - 生成补全
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
              x-apifox-orders:
                - model
              required:
                - model
            examples: {}
      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
                required:
                  - model
                  - created_at
                  - response
                  - done
                x-apifox-orders:
                  - model
                  - created_at
                  - response
                  - done
              example:
                model: llama3.2
                created_at: '2023-12-18T19:52:07.071755Z'
                response: ''
                done: true
          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-272428821-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://localhost:11434/api/
    description: 正式环境
security: []

```
