From 23dcdc6ac624fd70c3285b52934a8e4f10862f2a Mon Sep 17 00:00:00 2001 From: Shu Guang <61069967+shuguangnet@users.noreply.github.com> Date: Sat, 19 Apr 2025 23:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2newapi=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=B8=BAaliyun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Code/index.tsx | 4 ++-- src/pages/Forecast/index.tsx | 8 ++++---- src/pages/OpenPlatform/index.tsx | 2 +- src/pages/Report/index.tsx | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pages/Code/index.tsx b/src/pages/Code/index.tsx index 04ed259..768f43f 100644 --- a/src/pages/Code/index.tsx +++ b/src/pages/Code/index.tsx @@ -70,11 +70,11 @@ const CodeAnalysisPage: React.FC = () => { } setLoading(true); try { - const response = await fetch('http://62.106.70.89:3000/v1/chat/completions', { + const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', - 'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' + 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY' }, body: JSON.stringify({ model: 'deepseek-chat', diff --git a/src/pages/Forecast/index.tsx b/src/pages/Forecast/index.tsx index fc47532..5698ed5 100644 --- a/src/pages/Forecast/index.tsx +++ b/src/pages/Forecast/index.tsx @@ -119,11 +119,11 @@ const AnalysisCenter: React.FC = () => { setLoading(true); try { - const response = await fetch('http://62.106.70.89:3000/v1/chat/completions', { + const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', - 'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' + 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY' }, body: JSON.stringify({ model: 'deepseek-chat', @@ -201,11 +201,11 @@ const AnalysisCenter: React.FC = () => { textContent = jsonData.map(row => row.join('\t')).join('\n'); } - const response = await fetch('http://62.106.70.89:3000/v1/chat/completions', { + const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', - 'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' + 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY' }, body: JSON.stringify({ model: 'deepseek-chat', diff --git a/src/pages/OpenPlatform/index.tsx b/src/pages/OpenPlatform/index.tsx index a943a1d..277470d 100644 --- a/src/pages/OpenPlatform/index.tsx +++ b/src/pages/OpenPlatform/index.tsx @@ -7,7 +7,7 @@ const OpenPlatform: React.FC = () => { const [keyList] = useState([ { id: 1, - accessKey: 'sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S', + accessKey: 'sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY', description: 'GPT-3.5-Turbo API,支持中英文对话,适合日常对话场景', status: 'active', qps: '3次/秒', diff --git a/src/pages/Report/index.tsx b/src/pages/Report/index.tsx index 9b13b1c..85ce47b 100644 --- a/src/pages/Report/index.tsx +++ b/src/pages/Report/index.tsx @@ -98,11 +98,11 @@ const ReportPage: React.FC = () => { const analyzeData = async (content: any) => { try { - const response = await fetch('http://62.106.70.89:3000/v1/chat/completions', { + const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', - 'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' + 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY' }, body: JSON.stringify({ model: 'deepseek-chat', @@ -189,11 +189,11 @@ const handleDownload = async () => { const generateReport = async () => { setLoading(true); try { - const response = await fetch('http://62.106.70.89:3000/v1/chat/completions', { + const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', - 'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' + 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY' }, body: JSON.stringify({ model: 'deepseek-chat',