feat: 前端接口代理

This commit is contained in:
Gsh
2025-06-19 23:45:22 +08:00
parent bc91a8cff2
commit a89e11d132
12 changed files with 133 additions and 7 deletions

View File

@@ -2,7 +2,8 @@ import type { ChatMessageVo, GetChatListParams, SendDTO } from './types';
import { get, post } from '@/utils/request';
// 发送消息
export const send = (data: SendDTO) => post<null>('/chat/send', data);
export const send = (data: SendDTO) => post<null>('/prod-api/ai/send', data);
// export const send = (data: SendDTO) => post<null>('/chat/send', data);
// 新增对应会话聊天记录
export function addChat(data: ChatMessageVo) {