File size: 820 Bytes
77b0e0f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
import { request_handler, type ResultPackage } from '@/api/base'
import { header_authorization } from '@/api/user'
// 获取后端主播信息
const genSalesDocRequest = (productId: number, streamerId: number) => {
return request_handler<ResultPackage<string>>({
method: 'GET',
url: '/llm/gen_sales_doc',
params: { streamer_id: streamerId, product_id: productId },
headers: {
Authorization: header_authorization.value
}
})
}
// 使用说明书总结生成商品信息接口
const genProductInfoByLlmRequest = (productId: number) => {
return request_handler({
method: 'GET',
url: '/llm/gen_product_info',
params: { product_id: productId },
headers: {
Authorization: header_authorization.value
}
})
}
export { genSalesDocRequest, genProductInfoByLlmRequest }
|