diff --git a/components/AISummary/index.jsx b/components/AISummary/index.jsx
index 42ad44e..2e5badc 100644
--- a/components/AISummary/index.jsx
+++ b/components/AISummary/index.jsx
@@ -96,7 +96,7 @@ export default function AISummary({ contentMarkdown, params, tags }) {
aria-label="选择 AI 模型"
>
-
+
diff --git a/pages/api/lingyiwangwu.js b/pages/api/qwen.js
similarity index 88%
rename from pages/api/lingyiwangwu.js
rename to pages/api/qwen.js
index ff042fd..d6e616e 100644
--- a/pages/api/lingyiwangwu.js
+++ b/pages/api/qwen.js
@@ -1,8 +1,8 @@
import OpenAI from 'openai'
const openai = new OpenAI({
- baseURL: process.env.LINGYIWANGWU_BASE_URL,
- apiKey: process.env.LINGYIWANGWU_API_KEY
+ baseURL: process.env.DASHSCOPE_BASE_URL,
+ apiKey: process.env.DASHSCOPE_API_KEY
})
export default async function handler(req, res) {
@@ -17,7 +17,7 @@ export default async function handler(req, res) {
try {
const stream = await openai.chat.completions.create({
- model: 'yi-lightning',
+ model: 'qwen-turbo-1101',
messages: [{ role: 'user', content: message }],
stream: true,
})