青鸟ai,pc版仓库

49 lines
846 B

import { defHttp } from '@/utils/axios/index'
/**
* @description
*/
export async function conversationList() {
return defHttp.get({
url: `/open-chat/chat/conversation/list`,
})
}
/**
* @description
*/
export async function historyMessage(params: {
conversationId: string
current: number
size: number
}) {
return defHttp.get({
url: `/open-chat/chat/chatMessageLog/page`,
params,
})
}
/**
* @description
*/
export async function sendMessage(data: {
roleId: number
conversationId: string
question: string
}) {
return defHttp.post({
url: `/open-chat/chat/session`,
data,
timeout: 30 * 1000,
})
}
/**
* @description chat信息
*/
export async function chatInfo() {
return defHttp.get({
url: `/open-chat/chat/ai/getWxUserInfo`,
})
}