fix: 修改newapi接口为a1.aizex.me

This commit is contained in:
sunhe 2025-04-19 22:06:53 +08:00
parent 4b2a05fce8
commit f6abb7a850
4 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@ export default [
{ path: '/home', name :"首页", icon: "PieChartOutlined", component: './HomePage' },
{ path: '/add_chart', name :"智能分析", icon: "barChart", component: './AddChart' },
{ path: '/add_async', name: "智能分析(异步)", icon: "DotChartOutlined", component: './AddChartAsync' },
{ path: '/add_async', name: "异步分析", icon: "DotChartOutlined", component: './AddChartAsync' },
{ path: '/report', name: "报告中心", icon: "commentOutlined", component: './Report' },
{ path: '/code', name: "代码分析", icon: "GithubOutlined", component: './Code' },
{ path: '/Forecast', name :"分析中心", icon: "ApiOutlined", component: './Forecast' },

View File

@ -70,7 +70,7 @@ const CodeAnalysisPage: React.FC = () => {
}
setLoading(true);
try {
const response = await fetch('https://aizex.top/v1/chat/completions', {
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

@ -119,7 +119,7 @@ const AnalysisCenter: React.FC = () => {
setLoading(true);
try {
const response = await fetch('https://aizex.top/v1/chat/completions', {
const response = await fetch('https://a1.aizex.me/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('https://aizex.top/v1/chat/completions', {
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',

View File

@ -98,7 +98,7 @@ const ReportPage: React.FC = () => {
const analyzeData = async (content: any) => {
try {
const response = await fetch('https://aizex.top/v1/chat/completions', {
const response = await fetch('https://a1.aizex.me/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('https://aizex.top/v1/chat/completions', {
const response = await fetch('https://a1.aizex.me/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',