fix: support zhipu cogview-3-flash model
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

--bug=1051161 --user=刘瑞斌 【模型】添加智普免费的图片生成模型(Cogview-3-Flash)报错 https://www.tapd.cn/57709429/s/1641187
This commit is contained in:
CatpainB 2025-01-03 13:44:59 +08:00 committed by 刘瑞斌
parent 892878396d
commit f9b1f2d927

View File

@ -48,6 +48,9 @@ model_info_tti_list = [
ModelInfo('cogview-3-plus', '根据用户文字描述生成高质量图像,支持多图片尺寸',
ModelTypeConst.TTI, zhipu_tti_model_credential,
ZhiPuTextToImage),
ModelInfo('cogview-3-flash', '根据用户文字描述生成高质量图像,支持多图片尺寸(免费)',
ModelTypeConst.TTI, zhipu_tti_model_credential,
ZhiPuTextToImage),
]
model_info_manage = (
@ -56,6 +59,7 @@ model_info_manage = (
.append_default_model_info(ModelInfo('glm-4', '', ModelTypeConst.LLM, qwen_model_credential, ZhipuChatModel))
.append_model_info_list(model_info_image_list)
.append_model_info_list(model_info_tti_list)
.append_default_model_info(model_info_tti_list[0])
.build()
)