fix: toolhub request_timeout should be str

This commit is contained in:
lanvent
2023-04-17 12:00:28 +08:00
parent 65f20ff2c1
commit 2f732e5493
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ class Tool(Plugin):
return {
"openai_api_key": conf().get("open_ai_api_key", ""),
"proxy": conf().get("proxy", ""),
"request_timeout": conf().get("request_timeout", 60),
"request_timeout": str(conf().get("request_timeout", 60)),
# note: 目前tool暂未对其他模型测试但这里仍对配置来源做了优先级区分一般插件配置可覆盖全局配置
"model_name": tool_model_name
if tool_model_name