# Generated by ShowAPI OpenAPI generator
# source: market/3101
# generated-at: 2026-06-26T06:23:06.237Z
openapi: 3.0.3
info:
  title: 左手医生GPT连接器
  description: 我们的对话模型 API 提供了强大的大模型对话能力，可以根据您提供的消息列表生成智能回复。这个 API 非常适合构建医疗问答、多轮对话等任务，为您的应用程序注入医疗领域的智能。
  termsOfService: https://www.showapi.com/helpcenter/view#/4019/2
  version: 1.0.0
servers:
  - url: https://route.showapi.com
paths:
  /3101-4:
    x-pointCode: 4
    x-mode: pass_through
    x-read-timeout: 15
    x-connect-timeout: 5
    post:
      summary: 一句话导诊
      description: 根据患者的一句话简单病情摘要，推荐可能就诊的合适科室。 支持通过入参自定义科室列表。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/ShowapiResEnvelope"
                  - type: object
                    properties:
                      showapi_res_body:
                        type: object
                        properties:
                          code:
                            type: number
                            description: "- 0：服务正常；- 非零：服务异常"
                          message:
                            type: string
                          data:
                            type: object
                            properties:
                              departments:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    name:
                                      type: string
                                      description: 科室名称	小儿内科	与入参里的科室列表保持一致
                                description: |
                                  目前仅返回 1 个结果
                        description: 业务返回体
      operationId: 3101_4_POST
      parameters:
        - name: ds_id
          in: header
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sentence:
                  type: string
                departments:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      description:
                        type: string
  /3101-3:
    x-pointCode: 3
    x-mode: pass_through
    x-read-timeout: 5
    x-connect-timeout: 5
    post:
      summary: 服务推荐
      description: 根据患者的咨询问题，推荐患者可能需求的服务项目。 支持通过入参自定义服务项目列表。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: number
                    description: "- 0：服务正常；- 非零：服务异常"
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              description: 与入参里的项目名称列表保持一致
                            id:
                              type: string
                              description: 与入参里的项目名称列表保持一致
                        description: 目前仅返回 1 个结果
      operationId: 3101_3_POST
      parameters:
        - name: ds_id
          in: header
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sentence:
                  type: string
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                      id:
                        type: string
                      description:
                        type: string
  /3101-2:
    x-pointCode: 2
    x-mode: pass_through
    x-read-timeout: 30
    x-connect-timeout: 10
    post:
      summary: 生成回复
      description: 我们的对话模型 API 提供了强大的大模型对话能力，可以根据您提供的消息列表生成智能回复。这个 API 非常适合构建医疗问答、多轮对话等任务，为您的应用程序注入医疗领域的智能
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: number
                    description: 状态码 0表示正常
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                      object:
                        type: string
                      created:
                        type: number
                      model:
                        type: string
                      choices:
                        type: array
                        items:
                          type: object
                          properties:
                            message:
                              type: object
                              properties:
                                role:
                                  type: string
                                  description: 该条消息作者的角色
                                content:
                                  type: string
                                  description: 消息的文字内容
                            finish_reason:
                              type: string
                      usage:
                        type: object
                        properties:
                          prompt_tokens:
                            type: number
                            description: 提示词token总数. 提示词由您输入的对话拼接而成. 如果请求参数中的 n 大于1, 提示词token数会成倍增加
                          completion_tokens:
                            type: number
                            description: 生成的token总数
                          total_tokens:
                            type: number
                            description: 总token数 (prompt_tokens + prompt_tokens)
                        description: 本次生成的token数量
      operationId: 3101_2_POST
      parameters:
        - name: ds_id
          in: header
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                messages:
                  type: array
                  items:
                    type: object
                    properties:
                      role:
                        type: string
                      content:
                        type: string
                max_tokens:
                  type: integer
                stream:
                  type: boolean
                temperature:
                  nullable: true
                top_p:
                  nullable: true
                repetition_penalty:
                  nullable: true
                user:
                  type: string
  /3101-1:
    x-pointCode: 1
    x-mode: mapping
    x-read-timeout: 5
    x-connect-timeout: 5
    get:
      summary: 模型列表
      description: 获取现在支持的所有模型类别。
      responses:
        "200":
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: number
                    description: 状态码 0表示正常
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      object:
                        type: string
                      data:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: 模型ID
                            object:
                              type: string
                            created:
                              type: number
                              description: 发布时间.unix时间戳,单位为秒
                            owned_by:
                              type: string
      operationId: 3101_1_GET
      parameters:
        - name: Accept
          in: header
          required: false
          schema:
            type: string
        - name: ds_id
          in: header
          required: false
          schema:
            type: string
components:
  securitySchemes:
    AppKeyAuth:
      type: apiKey
      in: query
      name: appKey
      description: 从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp
  schemas:
    ShowapiResEnvelope:
      type: object
      description: ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）
      properties:
        showapi_res_code:
          type: integer
          description: API 返回的状态码
        showapi_res_error:
          type: string
          description: API 返回的错误信息
        showapi_res_id:
          type: string
          description: API 请求的唯一标识
        showapi_fee_num:
          type: integer
          description: API 调用计费次数
security:
  - AppKeyAuth: []
externalDocs:
  url: https://www.showapi.com/apiGateway/view/3101?tab=book
x-apiCode: "3101"
x-is-own: true
x-is-op: true
