Skip to content

Commit 1ced2e7

Browse files
committed
fix: support zhipu cogview-3-flash model
--bug=1051161 --user=刘瑞斌 【模型】添加智普免费的图片生成模型(Cogview-3-Flash)报错 https://www.tapd.cn/57709429/s/1641187
1 parent 8928783 commit 1ced2e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/setting/models_provider/impl/zhipu_model_provider/zhipu_model_provider.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
ModelInfo('cogview-3-plus', '根据用户文字描述生成高质量图像,支持多图片尺寸',
4949
ModelTypeConst.TTI, zhipu_tti_model_credential,
5050
ZhiPuTextToImage),
51+
ModelInfo('cogview-3-flash', '根据用户文字描述生成高质量图像,支持多图片尺寸(免费)',
52+
ModelTypeConst.TTI, zhipu_tti_model_credential,
53+
ZhiPuTextToImage),
5154
]
5255

5356
model_info_manage = (
@@ -56,6 +59,7 @@
5659
.append_default_model_info(ModelInfo('glm-4', '', ModelTypeConst.LLM, qwen_model_credential, ZhipuChatModel))
5760
.append_model_info_list(model_info_image_list)
5861
.append_model_info_list(model_info_tti_list)
62+
.append_default_model_info(model_info_tti_list[0])
5963
.build()
6064
)
6165

0 commit comments

Comments
 (0)