更换newapi接口为aliyun

This commit is contained in:
Shu Guang 2025-04-19 23:51:07 +08:00
parent ed5dfcc7dc
commit 23dcdc6ac6
4 changed files with 11 additions and 11 deletions

View File

@ -70,11 +70,11 @@ const CodeAnalysisPage: React.FC = () => {
} }
setLoading(true); setLoading(true);
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'deepseek-chat', model: 'deepseek-chat',

View File

@ -119,11 +119,11 @@ const AnalysisCenter: React.FC = () => {
setLoading(true); setLoading(true);
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'deepseek-chat', model: 'deepseek-chat',
@ -201,11 +201,11 @@ 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://62.106.70.89:3000/v1/chat/completions', { const response = await fetch('http://8.218.106.190:3000/v1/chat/completions', {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'deepseek-chat', model: 'deepseek-chat',

View File

@ -7,7 +7,7 @@ const OpenPlatform: React.FC = () => {
const [keyList] = useState([ const [keyList] = useState([
{ {
id: 1, id: 1,
accessKey: 'sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S', accessKey: 'sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY',
description: 'GPT-3.5-Turbo API支持中英文对话适合日常对话场景', description: 'GPT-3.5-Turbo API支持中英文对话适合日常对话场景',
status: 'active', status: 'active',
qps: '3次/秒', qps: '3次/秒',

View File

@ -98,11 +98,11 @@ const ReportPage: React.FC = () => {
const analyzeData = async (content: any) => { const analyzeData = async (content: any) => {
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'deepseek-chat', model: 'deepseek-chat',
@ -189,11 +189,11 @@ const handleDownload = async () => {
const generateReport = async () => { const generateReport = async () => {
setLoading(true); setLoading(true);
try { 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', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S' 'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'deepseek-chat', model: 'deepseek-chat',