perf: 中断SSE、更换测试环境接口

This commit is contained in:
rd
2025-08-28 14:13:59 +08:00
parent 10fc946eca
commit 6074f716ef
7 changed files with 51 additions and 53 deletions

View File

@ -2,6 +2,7 @@ import Http from '@/api';
import axios from 'axios';
import { glsWithCatch } from '@/utils/stroage';
import { useEnterpriseStore } from '@/stores/modules/enterprise';
export const BASE_PYTHON_URL = 'https://agent.lvfunai.com';
// 历史记录-列表
export const getAgentHistory = (id: string) => {
@ -28,7 +29,6 @@ export const getConversationList = (params: {}) => {
return Http.get(`/v1/conversation/message/list`, params);
};
export const baseUrl = 'https://agent.lvfunai.com';
export const getHeaders = () => {
const store = useEnterpriseStore();
return {
@ -43,7 +43,7 @@ export const getHeaders = () => {
* 获取智能体信息
*/
export const getAgentData = async () => {
const { data } = await axios.get(`${baseUrl}/api/agent/info`, {
const { data } = await axios.get(`${BASE_PYTHON_URL}/api/agent/info`, {
headers: getHeaders(),
});
return data;
@ -53,7 +53,7 @@ export const getAgentData = async () => {
* 生成会话id
*/
export const createSession = async () => {
const { data } = await axios.get(`${baseUrl}/api/agent/create_session`, {
const { data } = await axios.get(`${BASE_PYTHON_URL}/api/agent/create_session`, {
headers: getHeaders(),
});
return data;