feat(server): add imageQuality/imageCount and output_format to API contract
Extend CreateProject/Generate/AgentChat request types with imageQuality and imageCount, and add output_format to GeneratorTaskInputArgs for layered (PSD) generation output. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -330,6 +330,8 @@ type CreateProjectRequest {
|
||||
Prompt string `json:"prompt,optional"`
|
||||
ImageModel string `json:"imageModel,optional"`
|
||||
ImageSize string `json:"imageSize,optional"`
|
||||
ImageQuality string `json:"imageQuality,optional"`
|
||||
ImageCount int64 `json:"imageCount,optional"`
|
||||
EnableWebSearch bool `json:"enableWebSearch,optional"`
|
||||
AllowEmptyPrompt bool `json:"allowEmptyPrompt,optional"`
|
||||
}
|
||||
@@ -508,11 +510,13 @@ type CandaThreadStatusResponse {
|
||||
}
|
||||
|
||||
type GenerateRequest {
|
||||
Id string `path:"id"`
|
||||
Prompt string `json:"prompt"`
|
||||
Mode string `json:"mode,optional"`
|
||||
ImageModel string `json:"imageModel,optional"`
|
||||
ImageSize string `json:"imageSize,optional"`
|
||||
Id string `path:"id"`
|
||||
Prompt string `json:"prompt"`
|
||||
Mode string `json:"mode,optional"`
|
||||
ImageModel string `json:"imageModel,optional"`
|
||||
ImageSize string `json:"imageSize,optional"`
|
||||
ImageQuality string `json:"imageQuality,optional"`
|
||||
ImageCount int64 `json:"imageCount,optional"`
|
||||
}
|
||||
|
||||
type AgentContent {
|
||||
@@ -549,6 +553,8 @@ type AgentChatRequest {
|
||||
EnableWebSearch bool `json:"enableWebSearch,optional"`
|
||||
ImageModel string `json:"imageModel,optional"`
|
||||
ImageSize string `json:"imageSize,optional"`
|
||||
ImageQuality string `json:"imageQuality,optional"`
|
||||
ImageCount int64 `json:"imageCount,optional"`
|
||||
Mode string `json:"mode,optional"`
|
||||
}
|
||||
|
||||
@@ -613,13 +619,14 @@ type GeneratorTaskRequest {
|
||||
}
|
||||
|
||||
type GeneratorTaskInputArgs {
|
||||
AspectRatio string `json:"aspect_ratio,optional"`
|
||||
Image []string `json:"image,optional"`
|
||||
ImageUrl string `json:"image_url,optional"`
|
||||
Prompt string `json:"prompt,optional"`
|
||||
Resolution string `json:"resolution,optional"`
|
||||
SrcBox *NormalizedBox `json:"src_box,omitempty,optional"`
|
||||
DstBox *NormalizedBox `json:"dst_box,omitempty,optional"`
|
||||
AspectRatio string `json:"aspect_ratio,optional"`
|
||||
Image []string `json:"image,optional"`
|
||||
ImageUrl string `json:"image_url,optional"`
|
||||
OutputFormat string `json:"output_format,optional"`
|
||||
Prompt string `json:"prompt,optional"`
|
||||
Resolution string `json:"resolution,optional"`
|
||||
SrcBox *NormalizedBox `json:"src_box,omitempty,optional"`
|
||||
DstBox *NormalizedBox `json:"dst_box,omitempty,optional"`
|
||||
}
|
||||
|
||||
type GeneratorTaskSubmitRequest {
|
||||
|
||||
Reference in New Issue
Block a user