update ZhipuGLM4 node to support glm-4.5 series model

This commit is contained in:
chflame163
2025-08-10 18:42:24 +08:00
parent d2093fe100
commit 5f8c6f29c4
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -495,7 +495,7 @@ Outputs:
* text: Output text of GLM4.
* history: History of GLM4 conversations.
### <a id="table1">ZhipuGLM4</a>
### <a id="table1">ZhipuGLM4V</a>
Use the Zhipu API for visual inference.
Apply for an API key for free at [https://bigmodel.cn/usercenter/proj-mgmt/apikeys](https://bigmodel.cn/usercenter/proj-mgmt/apikeys), And fill it in ```api_key.ini```, this file is located in the root directory of the plug-in, and the default name is ```api_key.ini.example```. to use this file for the first time, you need to change the file suffix to ```.ini```. Open it using text editing software, fill in your API key after ```zhipu_api_key=``` and save it.
+1 -1
View File
@@ -475,7 +475,7 @@ JoyCaption Beta One的extra_options参数节点。
* text: GLM4的输出。
* history: GLM4对话历史记录。
### <a id="table1">ZhipuGLM4</a>
### <a id="table1">ZhipuGLM4V</a>
使用智谱API进行视觉推理。
在[https://bigmodel.cn/usercenter/proj-mgmt/apikeys](https://bigmodel.cn/usercenter/proj-mgmt/apikeys)免费申请API Key,并将其填到```api_key.ini```, 这个文件位于插件根目录下, 默认名字是```api_key.ini.example```, 初次使用这个文件需将文件后缀改为.ini。用文本编辑软件打开,在```zhipu_api_key=```后面填入你的API key并保存。
+1 -1
View File
@@ -73,7 +73,7 @@ class LS_ZhipuText:
@classmethod
def INPUT_TYPES(cls):
glm_model_list = ["GLM-4-Flash", "GLM-4-FlashX", "GLM-4-Plus", "GLM-4-Long","GLM-4-Air", "GLM-4-AirX"]
glm_model_list = ["glm-4.5-flash", "glm-4.5", "glm-4.5-air","glm-4.5-x", "glm-4.5-airx", "GLM-4-Flash", "GLM-4-FlashX", "GLM-4-Plus", "GLM-4-Long","GLM-4-Air", "GLM-4-AirX"]
return {"required":{
"model": (glm_model_list,),
"user_prompt": ("STRING", {"default": "where is the capital of France?", "multiline": True}),
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui_layerstyle_advance"
description = "The nodes detached from ComfyUI Layer Style are mainly those with complex requirements for dependency packages."
version = "2.0.23"
version = "2.0.24"
license = { text = "MIT License" }
dependencies = ["numpy", "matplotlib", "scikit_image", "scikit_learn", "opencv-contrib-python", "pymatting", "timm", "blend_modes", "transformers", "diffusers", "loguru", "colour-science", "huggingface_hub", "segment_anything", "addict", "omegaconf", "yapf", "wget", "iopath", "mediapipe", "typer_config", "fastapi", "rich", "google-generativeai", "ultralytics", "transparent-background", "accelerate", "onnxruntime", "bitsandbytes", "peft", "protobuf", "hydra-core", "blind-watermark", "qrcode", "pyzbar", "psd-tools", "wandb", "zhipuai", "openai","google-genai"]