From c3950fd4c7c4e64b6e0bd702ff1a57a596f7f3ee Mon Sep 17 00:00:00 2001 From: Shu Guang <61069967+shuguangnet@users.noreply.github.com> Date: Sun, 20 Apr 2025 21:56:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=8D=A2newapi=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Code/index.tsx | 2 +- src/pages/Forecast/index.tsx | 4 ++-- src/pages/Report/index.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/Code/index.tsx b/src/pages/Code/index.tsx index 5ee16f7..24ec98d 100644 --- a/src/pages/Code/index.tsx +++ b/src/pages/Code/index.tsx @@ -70,7 +70,7 @@ const CodeAnalysisPage: React.FC = () => { } setLoading(true); try { - const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { + const response = await fetch('https://openai.933999.xyz/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/src/pages/Forecast/index.tsx b/src/pages/Forecast/index.tsx index 73d71d1..6f30cc3 100644 --- a/src/pages/Forecast/index.tsx +++ b/src/pages/Forecast/index.tsx @@ -119,7 +119,7 @@ const AnalysisCenter: React.FC = () => { setLoading(true); try { - const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { + const response = await fetch('https://openai.933999.xyz/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -201,7 +201,7 @@ const AnalysisCenter: React.FC = () => { textContent = jsonData.map(row => row.join('\t')).join('\n'); } - const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { + const response = await fetch('https://openai.933999.xyz/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', diff --git a/src/pages/Report/index.tsx b/src/pages/Report/index.tsx index ffae76b..e15ec07 100644 --- a/src/pages/Report/index.tsx +++ b/src/pages/Report/index.tsx @@ -98,7 +98,7 @@ const ReportPage: React.FC = () => { const analyzeData = async (content: any) => { try { - const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { + const response = await fetch('https://openai.933999.xyz/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -189,7 +189,7 @@ const handleDownload = async () => { const generateReport = async () => { setLoading(true); try { - const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', { + const response = await fetch('https://openai.933999.xyz/v1/chat/completions', { method: 'POST', headers: { 'Content-Type': 'application/json',