Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import os
|
|
| 12 |
|
| 13 |
def get_aliyun_response(prompt, model_name="qwen-turbo"):
|
| 14 |
client = OpenAI(
|
| 15 |
-
api_key=
|
| 16 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1", # 填写DashScope服务的base_url
|
| 17 |
)
|
| 18 |
completion = client.chat.completions.create(
|
|
|
|
| 12 |
|
| 13 |
def get_aliyun_response(prompt, model_name="qwen-turbo"):
|
| 14 |
client = OpenAI(
|
| 15 |
+
api_key=os.getenv('API_KEY'), # 请在此处用您的API Key进行替换
|
| 16 |
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1", # 填写DashScope服务的base_url
|
| 17 |
)
|
| 18 |
completion = client.chat.completions.create(
|