fix: ai-hub接口替换
This commit is contained in:
@@ -12,5 +12,6 @@ export function addChat(data: ChatMessageVo) {
|
||||
|
||||
// 获取当前会话的聊天记录
|
||||
export function getChatList(params: GetChatListParams) {
|
||||
return get<ChatMessageVo[]>('/system/message/list', params);
|
||||
// return get<ChatMessageVo[]>('/system/message/list', params);
|
||||
return get<ChatMessageVo[]>('/prod-api/message', params);
|
||||
}
|
||||
|
||||
@@ -6,22 +6,24 @@ import type {
|
||||
} from './types';
|
||||
import { del, get, post, put } from '@/utils/request';
|
||||
|
||||
// 获取会话列表
|
||||
export function get_session_list(params: GetSessionListParams) {
|
||||
return get<ChatSessionVo[]>('/system/session/list', params);
|
||||
// return get<ChatSessionVo[]>('/system/session/list', params);
|
||||
return get<ChatSessionVo[]>('/prod-api/session', params);
|
||||
}
|
||||
|
||||
// 创建会话
|
||||
export function create_session(data: CreateSessionDTO) {
|
||||
return post('/system/session', data);
|
||||
return post('/prod-api/session', data);
|
||||
}
|
||||
|
||||
// 更新会话
|
||||
export function update_session(data: ChatSessionVo) {
|
||||
return put('/system/session', data);
|
||||
return put('/prod-api/session', data);
|
||||
}
|
||||
|
||||
// 会话详情
|
||||
export function get_session(id: string) {
|
||||
return get<ChatSessionVo>(`/system/session/${id}`);
|
||||
return get<ChatSessionVo>(`/prod-api/session/${id}`);
|
||||
}
|
||||
|
||||
// 删除会话
|
||||
export function delete_session(ids: string[]) {
|
||||
return del(`/system/session/${ids}`);
|
||||
return del(`/prod-api/session/${ids}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user