From 7a9205dfba0a85ec9a9baaaecae02334d7c34fce Mon Sep 17 00:00:00 2001 From: vision Date: Wed, 5 Jul 2023 01:01:46 +0800 Subject: [PATCH 1/2] fix azure model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新chatgpt_tool_hub至0.4.6,拉取最新代码。tool即可使用azure接口! --- plugins/tool/tool.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tool/tool.py b/plugins/tool/tool.py index 46ddee3..1c3b13d 100644 --- a/plugins/tool/tool.py +++ b/plugins/tool/tool.py @@ -137,6 +137,7 @@ class Tool(Plugin): "debug": kwargs.get("debug", False), "openai_api_key": conf().get("open_ai_api_key", ""), "open_ai_api_base": conf().get("open_ai_api_base", "https://api.openai.com/v1"), + "deployment_id": conf().get("azure_deployment_id", ""), "proxy": conf().get("proxy", ""), "request_timeout": request_timeout if request_timeout else conf().get("request_timeout", 120), # note: 目前tool暂未对其他模型测试,但这里仍对配置来源做了优先级区分,一般插件配置可覆盖全局配置 From 6384e9310b17499679198acb7d1cf0f498b6e230 Mon Sep 17 00:00:00 2001 From: vision Date: Wed, 5 Jul 2023 01:06:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?plugin(tool):=20=E6=9B=B4=E6=96=B00.4.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、temp fix summary tool not ending bug 2、兼容0613 gpt-3.5 3、add azure's model name: gpt-35-turbo --- requirements-optional.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-optional.txt b/requirements-optional.txt index b5a968b..92477f3 100644 --- a/requirements-optional.txt +++ b/requirements-optional.txt @@ -25,4 +25,4 @@ wechatpy # chatgpt-tool-hub plugin --extra-index-url https://pypi.python.org/simple -chatgpt_tool_hub==0.4.4 \ No newline at end of file +chatgpt_tool_hub==0.4.6