# 通过PPT大纲生成PPT完整内容

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/gpt/gen_content_by_outline:
    post:
      summary: 通过PPT大纲生成PPT完整内容
      deprecated: false
      description: |2+

          输出PPT大纲
          :::caution
          该请求推荐使用流式输出(参数： stream=true)
          请参考 [gpt流式接口调用介绍](https://api-doc.mindshow.vip/doc-6480736.md)
          :::

          :::caution
          消耗积分规则： 每次扣除1个积分
          :::







      tags:
        - 大语言GPT
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                outline:
                  description: 'markdown格式大纲 '
                  default: ''
                  examples:
                    - |-
                      # 大语言模型发展历程
                       ..
                  type: string
                stream:
                  description: '是否流式输出 '
                  default: false
                  examples:
                    - ''
                  type: boolean
                content_ex_info:
                  description: >-
                    内容扩展信息 , 生成大纲时的得到的， 如果设置了，后续的 配置 model, desc_info,qa_list,
                    resource_id_list无需填写。 
                  default: ''
                  type: string
                scene:
                  description: '在什么样场景下使用, 如：`分析报告`， `教学课件`, `产品介绍`, `公众演讲`, `财务分析` ...  '
                  default: ''
                  examples:
                    - ''
                  type: string
                target_audience:
                  description: '目标受众, 如：`学生`， `大众`, `员工`  ...  '
                  default: ''
                  examples:
                    - ''
                  type: string
                model:
                  description: '使用模型. `ali` :阿里，`deepseek`: "Deepseek" ,  '
                  default: ali
                  type: string
                desc_info:
                  description: '备注，关于该主题的更多说明, '
                  default: ''
                  examples:
                    - ''
                  type: string
                qa_list:
                  type: array
                  description: '问答列表  '
                  items:
                    description: ''
                    default:
                      question: ''
                      answer: ''
                    type: object
                    properties:
                      question:
                        description: 问题
                        type: string
                      answer:
                        description: 回答
                        type: string
                    required:
                      - question
                      - answer
                    x-apifox-orders:
                      - question
                      - answer
                resource_id_list:
                  type: array
                  description: '参考的文件id列表:["xxxx1","xxxx2"], '
                  items:
                    description: ''
                    default: xxxx
                    examples:
                      - xxxxxxxx
                    type: string
              x-apifox-orders:
                - outline
                - stream
                - content_ex_info
                - scene
                - target_audience
                - model
                - desc_info
                - qa_list
                - resource_id_list
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                title: ResponseModel
                properties:
                  code:
                    type: integer
                    description: 错误码( 0:成功. 其它值:失败[无data数据区])
                  info:
                    type: string
                    description: 错误信息
                    examples:
                      - succ
                  request_id:
                    type: string
                    description: 请求id,用于定位请求
                    examples:
                      - 21al1389334aal4f
                  data:
                    type: object
                    properties:
                      content_ex_info:
                        description: 内容扩展信息 ,在stop 时才有值
                        type: string
                      content:
                        description: 输出内容 ,每次更新后的完整的markdown
                        type: string
                      progress_percent:
                        description: '进度: 0-100'
                        type: integer
                      finish_reason:
                        description: >-
                          "stop":正常结束, null: 流式输出过程, "outline_invalid" : 大纲无效 ,
                          "content_inappropriate" : 出现敏感内容中断, "system_error" :
                          系统异常
                        type: string
                    required:
                      - content_ex_info
                      - content
                      - progress_percent
                      - finish_reason
                    description: 数据区
                    x-apifox-orders:
                      - content_ex_info
                      - content
                      - progress_percent
                      - finish_reason
                required:
                  - code
                  - info
                  - request_id
                x-apifox-orders:
                  - code
                  - info
                  - request_id
                  - data
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 大语言GPT
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3930068/apis/api-286300307-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.mindshow.vip
    description: 正式环境
security:
  - bearer: []

```
