Merge pull request #1537 from hanfangyuan4396/master

支持阿里云百炼平台通义千问模型
This commit is contained in:
zhayujie
2023-12-08 13:27:52 +08:00
committed by GitHub
6 changed files with 203 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ available_setting = {
"open_ai_api_base": "https://api.openai.com/v1",
"proxy": "", # openai使用的代理
# chatgpt模型 当use_azure_chatgpt为true时其名称为Azure上model deployment名称
"model": "gpt-3.5-turbo", # 还支持 gpt-4, gpt-4-turbo, wenxin, xunfei
"model": "gpt-3.5-turbo", # 还支持 gpt-4, gpt-4-turbo, wenxin, xunfei, tongyi
"use_azure_chatgpt": False, # 是否使用azure的chatgpt
"azure_deployment_id": "", # azure 模型部署名称
"azure_api_version": "", # azure api版本
@@ -67,6 +67,12 @@ available_setting = {
# claude 配置
"claude_api_cookie": "",
"claude_uuid": "",
# 通义千问API, 获取方式查看文档 https://help.aliyun.com/document_detail/2587494.html
"tongyi_access_key_id": "",
"tongyi_access_key_secret": "",
"tongyi_agent_key": "",
"tongyi_app_id": "",
"tongyi_node_id": "", # 流程编排模型用到的id如果没有用到tongyi_node_id请务必保持为空字符串
# wework的通用配置
"wework_smart": True, # 配置wework是否使用已登录的企业微信False为多开
# 语音设置