feat: ai-hub与bbs单点登录联通

This commit is contained in:
Gsh
2025-06-21 21:52:44 +08:00
parent 7d902682f8
commit 8aaa22cea3
13 changed files with 206 additions and 39 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>('/prod-api/ai/send', data);
export const send = (data: SendDTO) => post<null>('/prod-api/ai-chat/send', data);
// export const send = (data: SendDTO) => post<null>('/chat/send', data);
// 新增对应会话聊天记录

View File

@@ -2,3 +2,4 @@ export * from './auth';
export * from './chat';
export * from './model';
export * from './session';
export * from './user';

View File

@@ -4,5 +4,5 @@ import { get } from '@/utils/request';
// 获取当前用户的模型列表
export function getModelList() {
// return get<GetSessionListVO[]>('/system/model/modelList');
return get<GetSessionListVO[]>('/prod-api/ai/model');
return get<GetSessionListVO[]>('/prod-api/ai-chat/model');
}

View File

@@ -0,0 +1,6 @@
import { get } from '@/utils/request';
// 获取用户信息
export function getUserInfo() {
return get<any>('/prod-api/account');
}