# 示例

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/embeddings:
    post:
      summary: 示例
      deprecated: false
      description: ''
      tags:
        - 生成单个嵌入向量
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: 使用的模型名称
                  example: all-minilm
                prompt:
                  type: string
                  description: 输入提示文本
                  example: 这是一篇关于羊驼的文章...
              required:
                - model
                - prompt
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  embedding:
                    type: array
                    items:
                      type: number
                required:
                  - embedding
                x-apifox-orders:
                  - embedding
              example:
                embedding:
                  - 0.5670403838157654
                  - 0.009260174818336964
                  - 0.23178744316101074
                  - -0.2916173040866852
                  - -0.8924556970596313
                  - 0.8785552978515625
                  - -0.34576427936553955
                  - 0.5742510557174683
                  - -0.04222835972905159
                  - -0.137906014919281
          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-272428844-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://localhost:11434/api/
    description: 正式环境
security: []

```
