mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-28 14:52:58 +00:00
fix: support zhipu cogview-3-flash model
--bug=1051161 --user=刘瑞斌 【模型】添加智普免费的图片生成模型(Cogview-3-Flash)报错 https://www.tapd.cn/57709429/s/1641187
This commit is contained in:
parent
892878396d
commit
f9b1f2d927
|
|
@ -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()
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue