add qwen api

This commit is contained in:
chenhengzh
2024-03-28 00:40:24 +08:00
parent 27d081ae54
commit 985378838b
2 changed files with 25 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
pexels_api_keys = []
# 如果你没有 OPENAI API Key可以使用 g4f 代替,或者使用国内的 Moonshot API
llm_provider="openai" # "openai" or "moonshot" or "oneapi" or "g4f" or "azure"
llm_provider="openai" # "openai" or "moonshot" or "oneapi" or "g4f" or "azure" or "qwen"
########## OpenAI API Key
# Visit https://openai.com/api/ for details on obtaining an API key.
@@ -40,6 +40,11 @@
azure_model_name="gpt-35-turbo" # replace with your model deployment name
azure_api_version = "2024-02-15-preview"
########## qwen API Key, you need to pip install dashscope firstly
# Visit https://tongyi.aliyun.com/qianwen/ to get more details
qwen_api_key = ""
qwen_model_name = "qwen-max"
# Subtitle Provider, "edge" or "whisper"
# If empty, the subtitle will not be generated