File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
image/index/components/other Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ import {
83
83
ImageHotWords ,
84
84
ImageModelVO ,
85
85
OtherPlatformEnum ,
86
+ QianFanModels ,
86
87
TongYiWanXiangModels
87
88
} from ' @/views/ai/utils/constants'
88
89
@@ -96,7 +97,7 @@ const prompt = ref<string>('') // 提示词
96
97
const width = ref <number >(512 ) // 图片宽度
97
98
const height = ref <number >(512 ) // 图片高度
98
99
const otherPlatform = ref <string >(AiPlatformEnum .TONG_YI ) // 平台
99
- const models = ref <ImageModelVO []>(TongYiWanXiangModels ) // 模型
100
+ const models = ref <ImageModelVO []>(TongYiWanXiangModels ) // 模型 TongYiWanXiangModels、QianFanModels
100
101
const model = ref <string >(models .value [0 ].key ) // 模型
101
102
102
103
@@ -154,8 +155,10 @@ const settingValues = async (detail: ImageVO) => {
154
155
/** 平台切换 */
155
156
const handlerPlatformChange = async (platform ) => {
156
157
// 切换平台,切换模型、风格
157
- if (AiPlatformEnum .YI_YAN === platform ) {
158
+ if (AiPlatformEnum .TONG_YI === platform ) {
158
159
models .value = TongYiWanXiangModels
160
+ } else if (AiPlatformEnum .YI_YAN === platform ) {
161
+ models .value = QianFanModels
159
162
} else {
160
163
models .value = []
161
164
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const OtherPlatformEnum:ImageModelVO [] = [
30
30
} ,
31
31
{
32
32
key : AiPlatformEnum . YI_YAN ,
33
- name : '百度图片 '
33
+ name : '百度千帆 '
34
34
}
35
35
]
36
36
@@ -259,6 +259,14 @@ export const TongYiWanXiangModels: ImageModelVO[] = [
259
259
}
260
260
]
261
261
262
+ export const QianFanModels : ImageModelVO [ ] = [
263
+ {
264
+ key : 'sd_xl' ,
265
+ name : 'sd_xl'
266
+ }
267
+ ]
268
+
269
+
262
270
export const StableDiffusionClipGuidancePresets : ImageModelVO [ ] = [
263
271
{
264
272
key : 'NONE' ,
You can’t perform that action at this time.
0 commit comments