# 原始模式请求（Raw Mode）

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/generate:
    post:
      summary: 原始模式请求（Raw Mode）
      deprecated: false
      description: >-
        In some cases, you may wish to bypass the templating system and provide
        a full prompt. In this case, you can use the `raw` parameter to disable
        templating. Also note that raw mode will not return a context.
      tags:
        - 生成补全
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: 要使用的模型名称
                prompt:
                  type: string
                  description: 输入的提示文本
                raw:
                  type: boolean
                  description: 是否返回原始输出
                stream:
                  type: boolean
                  description: 是否使用流式响应
              required:
                - model
                - prompt
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apifox-orders: []
          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-272428818-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://localhost:11434/api/
    description: 正式环境
security: []

```
