feat: 对接生图功能

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-25 19:14:58 +08:00
parent 5cb72f8579
commit 223845b0ed
12 changed files with 268 additions and 30 deletions
+18
View File
@@ -6,3 +6,21 @@ export type BaseOptions = {
/** 自定义 baseURL */
baseURL?: string;
};
/**
* 图片生成请求体。
*/
export interface IImageGenerateRequest {
/** 图片提示词 */
prompt?: string;
}
/**
* 图片生成成功后返回给前端的数据。
*/
export interface IImageGenerateData {
/** 生成图片的访问地址 */
imageUrl: string;
/** 上游返回的修订提示词,可能为空 */
revisedPrompt?: string;
}