feat: 图生图功能
feat: 参考图片(图生图)选择器 ui: 文件上传(预留) composable ui: 登录过期提示 ui: 调整部分 ui
This commit is contained in:
30
typings/schema.d.ts
vendored
30
typings/schema.d.ts
vendored
@@ -47,6 +47,14 @@ namespace req {
|
||||
sms_code: string
|
||||
}
|
||||
}
|
||||
|
||||
namespace file {
|
||||
interface Upload {
|
||||
file_name: string
|
||||
file_type: string
|
||||
file_size: number
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace resp {
|
||||
@@ -80,6 +88,12 @@ namespace resp {
|
||||
namespace HunYuan {
|
||||
type Resolution = '768:768' | '768:1024' | '1024:768'
|
||||
|
||||
interface resp {
|
||||
data_id: string | number
|
||||
request_id: string
|
||||
request_image: string
|
||||
}
|
||||
|
||||
namespace Text2Img {
|
||||
interface req {
|
||||
device_id: string
|
||||
@@ -88,14 +102,16 @@ namespace HunYuan {
|
||||
styles: number
|
||||
resolution: string
|
||||
}
|
||||
}
|
||||
|
||||
interface resp {
|
||||
data_id: string | number
|
||||
request_id: string
|
||||
request_image: string
|
||||
namespace Img2Img {
|
||||
interface req {
|
||||
device_id: string
|
||||
prompt: string
|
||||
negative_prompt?: string
|
||||
styles: number
|
||||
resolution: string
|
||||
file: File
|
||||
}
|
||||
}
|
||||
|
||||
namespace Img2Text {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user