青鸟ai,pc版仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
818 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(data: {
conversationId: string
current: number
size: number
}) {
return defHttp.get({
url: `/open-chat/chat/chatMessageLog/page`,
data,
})
}
/**
* @description
*/
export async function sendMessage(data: {
roleId: number
conversationId: string
question: string
}) {
return defHttp.post({
url: `/open-chat/chat/session`,
data,
})
}
/**
* @description chat信息
*/
export async function chatInfo() {
return defHttp.get({
url: `/open-chat/chat/ai/getWxUserInfo`,
})
}