2026-02-11 16:32:38 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
// 对话
|
|
|
|
|
export interface AgentParamsType {
|
|
|
|
|
message: string // 消息
|
2026-02-24 13:53:01 +08:00
|
|
|
projectID: string //
|
|
|
|
|
versionID?: string //
|
2026-02-11 16:32:38 +08:00
|
|
|
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 }
|
|
|
|
|
})
|
|
|
|
|
}
|