2026-02-11 16:32:38 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 对话
|
|
|
|
|
export interface AgentParamsType {
|
|
|
|
|
message: string // 消息
|
|
|
|
|
threadId: string // 对话ID
|
|
|
|
|
checkpointId?: string // 检查点ID
|
|
|
|
|
imageUrlList?: string[] // 图片URL列表
|
|
|
|
|
configParams: Record<string, any> // 其他配置参数
|
|
|
|
|
token: string
|
|
|
|
|
}
|
|
|
|
|
export const fetchAgentReply = (data: AgentParamsType): Promise<AgentResponse> => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/ai-design/chat',
|
2026-02-24 11:17:01 +08:00
|
|
|
method: 'get',
|
2026-02-11 16:32:38 +08:00
|
|
|
data,
|
|
|
|
|
meta: { responseAll: true }
|
|
|
|
|
})
|
|
|
|
|
}
|