From 032e063fb88603fca86e38b519f70234565bd480 Mon Sep 17 00:00:00 2001 From: ONLY-yours <1349021570@qq.com> Date: Thu, 11 Jan 2024 18:07:45 +0800 Subject: [PATCH] :memo: docs: update some tips --- docs/guide/qwen.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guide/qwen.md b/docs/guide/qwen.md index 506e49fd..a256cd9b 100644 --- a/docs/guide/qwen.md +++ b/docs/guide/qwen.md @@ -52,7 +52,7 @@ import { NextResponse } from 'next/server'; export async function POST(request: Request) { const { messages = [] }: Partial<{ messages: Array }> = await request.json(); try { - const apiKey = 'xxxxxxx'; // 你的 API 密钥 + const apiKey = 'Your—Api-Key'; // 你的 API 密钥 const response = await fetch( 'https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation', { @@ -125,3 +125,5 @@ export default function Home() { ### 完整的代码 详见 Github [Qwen-NextJs](https://github.com/ant-design/pro-chat/tree/main/demos/qwen-nextjs) + +> 记得在安装完依赖后,去 api 的地方配置通义千问的 api-key