fix: 对话参数修改

This commit is contained in:
Gsh
2025-07-18 20:33:51 +08:00
parent 3ce9fc9790
commit 90e8dbe449
4 changed files with 6 additions and 8 deletions

View File

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

View File

@@ -49,6 +49,7 @@ export interface SendDTO {
* 是否携带上下文
*/
usingContext?: boolean;
}
/**