From 4f0851f703a3f9abd4d6057f6fa4e5261af3d9cf Mon Sep 17 00:00:00 2001 From: hcy2206 <97283537+hcy2206@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:41:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=AF=B9=E4=BA=8Egl?= =?UTF-8?q?m-4-plus=E7=9A=84=E6=94=AF=E6=8C=81=20(#2014)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 增加对于讯飞星火大模型Spark4.0的支持 * Create github action sync.yml * 增加对于智谱glm-4-plus的支持 * feat: change arxiv io param * catch comment source code exception * upgrade auto comment * add security patch --------- Co-authored-by: GH Action - Upstream Sync Co-authored-by: binary-husky --- request_llms/bridge_all.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/request_llms/bridge_all.py b/request_llms/bridge_all.py index f953f8f9..3eaa96ac 100644 --- a/request_llms/bridge_all.py +++ b/request_llms/bridge_all.py @@ -385,6 +385,14 @@ model_info = { "tokenizer": tokenizer_gpt35, "token_cnt": get_token_num_gpt35, }, + "glm-4-plus":{ + "fn_with_ui": zhipu_ui, + "fn_without_ui": zhipu_noui, + "endpoint": None, + "max_token": 10124 * 8, + "tokenizer": tokenizer_gpt35, + "token_cnt": get_token_num_gpt35, + }, # api_2d (此后不需要在此处添加api2d的接口了,因为下面的代码会自动添加) "api2d-gpt-4": {