fix: 更换newapi域名

This commit is contained in:
Shu Guang 2025-04-20 21:56:08 +08:00
parent 57b1582c11
commit c3950fd4c7
3 changed files with 5 additions and 5 deletions

View File

@ -70,7 +70,7 @@ const CodeAnalysisPage: React.FC = () => {
} }
setLoading(true); setLoading(true);
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@ -119,7 +119,7 @@ const AnalysisCenter: React.FC = () => {
setLoading(true); setLoading(true);
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@ -201,7 +201,7 @@ const AnalysisCenter: React.FC = () => {
textContent = jsonData.map(row => row.join('\t')).join('\n'); 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@ -98,7 +98,7 @@ const ReportPage: React.FC = () => {
const analyzeData = async (content: any) => { const analyzeData = async (content: any) => {
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@ -189,7 +189,7 @@ const handleDownload = async () => {
const generateReport = async () => { const generateReport = async () => {
setLoading(true); setLoading(true);
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',