From f7c0c5600568b6f6f976be28fb7dae9883dd5943 Mon Sep 17 00:00:00 2001 From: xuzhenjun Date: Mon, 17 Apr 2023 09:55:27 +0800 Subject: [PATCH] =?UTF-8?q?key=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/chat-stream/route.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/chat-stream/route.ts b/app/api/chat-stream/route.ts index 9519ddac9..5d98b6bef 100644 --- a/app/api/chat-stream/route.ts +++ b/app/api/chat-stream/route.ts @@ -55,9 +55,8 @@ export async function POST(req: NextRequest) { const atlasAPI = new Atlas({ dataSource: "Cluster0", database: "chat_db", - apiKey: - "8uOObGDRUqxdzfFzk91CHMq1UcUbqwQvnE6XjPQZe2Nv1xEXRBUi3vakKBWg7nbH", - apiUrl: "https://data.mongodb-api.com/app/data-ffyyc/endpoint/data/v1", + apiKey: process.env.MONGODB_KEY + "", + apiUrl: process.env.MONGODB_URI + "", }); let userRes = await atlasAPI.findOne({