Skip to content

Commit 651b44b

Browse files
authored
✨ feat: add Qwen image generation capabilities (#8534)
1 parent b950da4 commit 651b44b

File tree

5 files changed

+874
-3
lines changed

5 files changed

+874
-3
lines changed

src/config/aiModels/qwen.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AIChatModelCard } from '@/types/aiModel';
1+
import { AIChatModelCard, AIImageModelCard } from '@/types/aiModel';
22

33
// https://help.aliyun.com/zh/model-studio/models?spm=a2c4g.11186623
44

@@ -956,6 +956,26 @@ const qwenChatModels: AIChatModelCard[] = [
956956
},
957957
];
958958

959-
export const allModels = [...qwenChatModels];
959+
const qwenImageModels: AIImageModelCard[] = [
960+
{
961+
description: '阿里云通义旗下的文生图模型',
962+
displayName: 'Wanxiang T2I Turbo',
963+
enabled: true,
964+
id: 'wanx2.1-t2i-turbo',
965+
organization: 'Qwen',
966+
parameters: {
967+
height: { default: 1024, max: 1440, min: 512, step: 1 },
968+
prompt: {
969+
default: '',
970+
},
971+
seed: { default: null },
972+
width: { default: 1024, max: 1440, min: 512, step: 1 },
973+
},
974+
releasedAt: '2025-01-08',
975+
type: 'image',
976+
},
977+
];
978+
979+
export const allModels = [...qwenChatModels, ...qwenImageModels];
960980

961981
export default allModels;

0 commit comments

Comments
 (0)