Update editor generation pricing defaults

Unify and lower default mud-point prices across editor generation features and update related API/schema, docs and tests. Changes set gpt-image-2 to 1K=3 / 2K=5, audio1.0 to 5, and chirp-v5 to 12, and update server default JSON, frontend models/workflows, OpenAPI schema (require aspectRatio/imageSize/priceMudPoints for UI extraction), multiple UX docs (quick-edit viewport, UI extraction panel, pricing guidance) and accompanying tests to match the new defaults and validation rules.
This commit is contained in:
2026-06-22 21:10:43 +08:00
parent 6e475af269
commit 2007f1f9ce
30 changed files with 911 additions and 181 deletions
@@ -843,6 +843,9 @@ describe('editorProjectClient', () => {
projectId: 'editor-project-1',
assetFolderId: 'project',
spritesheetLabel: '战斗UI设计图 素材图集',
aspectRatio: '1:1',
imageSize: '2K',
priceMudPoints: 5,
generationInputs: {
fields: [{ title: '来源', value: '战斗UI设计图' }],
references: [],
@@ -864,6 +867,9 @@ describe('editorProjectClient', () => {
},
assetFolderId: 'project',
spritesheetLabel: '战斗UI设计图 素材图集',
aspectRatio: '1:1',
imageSize: '2K',
priceMudPoints: 5,
}),
}),
'提取UI设计图素材失败',
@@ -161,6 +161,9 @@ export type EditorIconSpritesheetGenerationInput = {
export type EditorUiDesignAssetExtractionInput = {
sourceImageSrc: string;
aspectRatio?: string;
imageSize?: string;
priceMudPoints?: number;
projectId?: string | null;
generationInputs?: EditorAssetGenerationInputs | null;
assetFolderId?: string | null;
@@ -723,6 +726,11 @@ export async function extractEditorUiDesignAssets(
...(input.spritesheetLabel
? { spritesheetLabel: input.spritesheetLabel }
: {}),
...(input.aspectRatio ? { aspectRatio: input.aspectRatio } : {}),
...(input.imageSize ? { imageSize: input.imageSize } : {}),
...(typeof input.priceMudPoints === 'number'
? { priceMudPoints: input.priceMudPoints }
: {}),
}),
'提取UI设计图素材失败',
{