fix: 更换newapi域名
This commit is contained in:
parent
57b1582c11
commit
c3950fd4c7
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user