Skip to content

Commit

Permalink
Merge pull request zhayujie#1291 from 6vision/master
Browse files Browse the repository at this point in the history
(tool)fix azure model
  • Loading branch information
zhayujie committed Jul 4, 2023
2 parents 94b47a5 + 6384e93 commit 8aac86f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/tool/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def _build_tool_kwargs(self, kwargs: dict):
"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暂未对其他模型测试,但这里仍对配置来源做了优先级区分,一般插件配置可覆盖全局配置
Expand Down
2 changes: 1 addition & 1 deletion requirements-optional.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8aac86f

Please sign in to comment.