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',