feat: support Tongyi Qwen model of alibaba

This commit is contained in:
Han Fangyuan
2023-11-19 22:42:44 +08:00
parent 061d8a3a5f
commit 4ce37f84e4
5 changed files with 200 additions and 1 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版本
@@ -65,6 +65,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为多开
# 语音设置