feat: ai-hub与bbs单点登录联通
This commit is contained in:
@@ -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);
|
||||
|
||||
// 新增对应会话聊天记录
|
||||
|
||||
@@ -2,3 +2,4 @@ export * from './auth';
|
||||
export * from './chat';
|
||||
export * from './model';
|
||||
export * from './session';
|
||||
export * from './user';
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
6
Yi.Ai.Vue3/src/api/user/index.ts
Normal file
6
Yi.Ai.Vue3/src/api/user/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { get } from '@/utils/request';
|
||||
|
||||
// 获取用户信息
|
||||
export function getUserInfo() {
|
||||
return get<any>('/prod-api/account');
|
||||
}
|
||||
Reference in New Issue
Block a user