doc: update swagger

This commit is contained in:
superobk
2024-04-25 15:07:18 +08:00
parent 201d0f374c
commit c062abbe19
4 changed files with 19 additions and 79 deletions

View File

@ -54,10 +54,19 @@ components:
audio:
type: string
format: binary
TextAndImageInput:
type: object
properties:
text:
type: string
image:
type: string
format: binary
Input:
oneOf:
- $ref: "#/components/schemas/TextToAudioInput"
- $ref: "#/components/schemas/AudioToTextInput"
- $ref: "#/components/schemas/TextAndImageInput"
TextResult:
type: object
properties:
@ -71,5 +80,13 @@ components:
type: string
description: "Blackbox name"
enum:
- "text_to_audio"
- "audio_to_text"
- text_to_audio
- audio_to_text
- asr
- tts
- sentiment_engine
- tesou
- fastchat
- audio_chat
- g2e
- text_and_image