feat: 创建项目ID
This commit is contained in:
@@ -3,8 +3,8 @@ import request from '@/utils/request'
|
||||
// 对话
|
||||
export interface AgentParamsType {
|
||||
message: string // 消息
|
||||
projectID: string //
|
||||
versionID?: string //
|
||||
projectID: string //
|
||||
versionID?: string //
|
||||
imageUrlList?: string[] // 图片URL列表
|
||||
configParams: Record<string, any> // 其他配置参数
|
||||
token: string
|
||||
@@ -13,7 +13,17 @@ export const fetchAgentReply = (data: AgentParamsType): Promise<AgentResponse> =
|
||||
return request({
|
||||
url: '/api/ai-design/chat',
|
||||
method: 'get',
|
||||
data,
|
||||
data,
|
||||
meta: { responseAll: true }
|
||||
})
|
||||
}
|
||||
|
||||
export interface CreateProjectParamsType {
|
||||
type: string
|
||||
region: string
|
||||
style: string
|
||||
temperature: number | string
|
||||
}
|
||||
export const createProject = (data: CreateProjectParamsType): Promise<any> => {
|
||||
return request({ url: '/api/project/init', method: 'post', data })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user