更换newapi接口为aliyun
This commit is contained in:
parent
ed5dfcc7dc
commit
23dcdc6ac6
@ -70,11 +70,11 @@ const CodeAnalysisPage: React.FC = () => {
|
||||
}
|
||||
setLoading(true);
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S'
|
||||
'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: 'deepseek-chat',
|
||||
|
@ -119,11 +119,11 @@ const AnalysisCenter: React.FC = () => {
|
||||
setLoading(true);
|
||||
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S'
|
||||
'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: 'deepseek-chat',
|
||||
@ -201,11 +201,11 @@ const AnalysisCenter: React.FC = () => {
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S'
|
||||
'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: 'deepseek-chat',
|
||||
|
@ -7,7 +7,7 @@ const OpenPlatform: React.FC = () => {
|
||||
const [keyList] = useState([
|
||||
{
|
||||
id: 1,
|
||||
accessKey: 'sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S',
|
||||
accessKey: 'sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY',
|
||||
description: 'GPT-3.5-Turbo API,支持中英文对话,适合日常对话场景',
|
||||
status: 'active',
|
||||
qps: '3次/秒',
|
||||
|
@ -98,11 +98,11 @@ const ReportPage: React.FC = () => {
|
||||
|
||||
const analyzeData = async (content: any) => {
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S'
|
||||
'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: 'deepseek-chat',
|
||||
@ -189,11 +189,11 @@ const handleDownload = async () => {
|
||||
const generateReport = async () => {
|
||||
setLoading(true);
|
||||
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',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer sk-1PBIyxIdJ42yyC11XRNqbEXYDt2eZRNVNbd8XxmKjnPXGh5S'
|
||||
'Authorization': 'Bearer sk-mw9ekhJlSj3GeGiw0hLRSHlwdkDFst8q6oBfQrW0L15QilbY'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: 'deepseek-chat',
|
||||
|
Loading…
x
Reference in New Issue
Block a user