Browse Source

Merge pull request #1291 from 6vision/master

(tool)fix azure model
master
zhayujie GitHub 1 year ago
parent
commit
8aac86f0a9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      plugins/tool/tool.py
  2. +1
    -1
      requirements-optional.txt

+ 1
- 0
plugins/tool/tool.py View File

@@ -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暂未对其他模型测试,但这里仍对配置来源做了优先级区分,一般插件配置可覆盖全局配置


+ 1
- 1
requirements-optional.txt View File

@@ -25,4 +25,4 @@ wechatpy
# chatgpt-tool-hub plugin

--extra-index-url https://pypi.python.org/simple
chatgpt_tool_hub==0.4.4
chatgpt_tool_hub==0.4.6

Loading…
Cancel
Save