From 5f8c6f29c484100245bc6f8ea66277f53e23cdbe Mon Sep 17 00:00:00 2001 From: chflame163 Date: Sun, 10 Aug 2025 18:42:24 +0800 Subject: [PATCH] update ZhipuGLM4 node to support glm-4.5 series model --- README.md | 2 +- README_CN.MD | 2 +- py/zhipu_glm4.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 31af6e5..61940c9 100644 --- a/README.md +++ b/README.md @@ -495,7 +495,7 @@ Outputs: * text: Output text of GLM4. * history: History of GLM4 conversations. -### ZhipuGLM4 +### ZhipuGLM4V 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. diff --git a/README_CN.MD b/README_CN.MD index 5c85d8e..c63ca1c 100644 --- a/README_CN.MD +++ b/README_CN.MD @@ -475,7 +475,7 @@ JoyCaption Beta One的extra_options参数节点。 * text: GLM4的输出。 * history: GLM4对话历史记录。 -### ZhipuGLM4 +### ZhipuGLM4V 使用智谱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并保存。 diff --git a/py/zhipu_glm4.py b/py/zhipu_glm4.py index 7caf967..e8d9c4b 100644 --- a/py/zhipu_glm4.py +++ b/py/zhipu_glm4.py @@ -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}), diff --git a/pyproject.toml b/pyproject.toml index 641ec10..635a5d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]