88 lines
2.5 KiB
JavaScript
88 lines
2.5 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
export function getSseConfigV1(data) {
|
|
return request.post('/v1/chat/sse/message', data, { login: true })
|
|
}
|
|
|
|
export function getCompletions(params) {
|
|
return request.get('/v1/chat/sse/completions', params, { login: true })
|
|
}
|
|
|
|
export function getCompletionsV2(params) {
|
|
return request.get('/v1/chat/sse/completions2', params, { login: true })
|
|
}
|
|
|
|
// 通过关键字-搜索列表
|
|
export function getAnalyzeKeywordsV1(data) {
|
|
return request.post('/v1/chat/analyzeKeywords', data, { login: true })
|
|
}
|
|
|
|
// 通过关键字-搜索列表-换一换
|
|
export function getAnalyzeKeywordsChangeV1(data) {
|
|
return request.post('/v1/chat/aiSearch', data, { login: true })
|
|
}
|
|
|
|
export function deleteChatItemByConversationId(id) {
|
|
return request.delete('/v1/chat/message/' + id, {}, { login: true })
|
|
}
|
|
|
|
export function getChatList(params) {
|
|
return request.get('/v1/chat', params, { login: true })
|
|
}
|
|
|
|
export function historyChatMessage(params) {
|
|
return request.get('/v1/chat/message', params, { login: true })
|
|
}
|
|
|
|
export function deleteChatListByType(type) {
|
|
return request.delete('/v1/chat/type/' + type, {}, { login: true })
|
|
}
|
|
|
|
export function getWeatherData(params) {
|
|
return request.get('/v1/chat/weatherData', params, { login: true })
|
|
}
|
|
|
|
export function getHolidayData(params) {
|
|
return request.get('/v1/chat/holidayData', params, { login: true })
|
|
}
|
|
|
|
export function getCompletionsV3(params) {
|
|
return request.get('/v1/chat/intent/recognize', params, { login: true })
|
|
}
|
|
|
|
// 通过关键字-搜索列表-换一换
|
|
export function getAnalyzeKeywordsChangeV3(data) {
|
|
return request.post('/v1/chat/skill/refresh', data, { login: true })
|
|
}
|
|
|
|
// 以图搜索商品
|
|
export function getAnalyzeByImageV3(data) {
|
|
return request.post('/v1/chat/image/recognition', data, { login: true })
|
|
}
|
|
|
|
// 获取送礼选项配置
|
|
export function getGiftRecommendOptions(params) {
|
|
return request.get('/ai/gift-recommend/options', params, { login: true })
|
|
}
|
|
|
|
// 获取县域AI详情
|
|
export function getCountyAiDetail(params) {
|
|
return request.get('/county-ai/detail', params, { login: true })
|
|
}
|
|
|
|
export function getSseCountyAiConfigV1(data) {
|
|
return request.post('/county-ai/chat', data, { login: true })
|
|
}
|
|
|
|
export function getCountyAiCompletionsV1(params) {
|
|
return request.get('/county-ai/chat/recognize', params, { login: true })
|
|
}
|
|
|
|
export function getCountyAiChatList(params) {
|
|
return request.get('/county-ai/chat/list', params, { login: true })
|
|
}
|
|
|
|
export function getCountyAiHistoryChatMessage(params) {
|
|
return request.get('/county-ai/chat/message', params, { login: true })
|
|
}
|