feat: complete TASK-WP2-06 generation terminal states

This commit is contained in:
suyx
2026-08-03 01:06:28 +08:00
parent c8643c080d
commit 2bb4f86d04
18 changed files with 1419 additions and 14 deletions
+20
View File
@@ -2402,6 +2402,16 @@
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$",
"type": "string"
},
"error_category": {
"anyOf": [
{
"$ref": "#/components/schemas/GenerationErrorCategory"
},
{
"type": "null"
}
]
},
"generation_id": {
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$",
"type": "string"
@@ -2426,6 +2436,14 @@
"ratio": {
"$ref": "#/components/schemas/ProjectRatio"
},
"reference_asset_ids": {
"items": {
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$",
"type": "string"
},
"maxItems": 16,
"type": "array"
},
"reference_count": {
"minimum": 0,
"type": "integer"
@@ -2445,12 +2463,14 @@
"required": [
"confirmed_credit_cost",
"created_at",
"error_category",
"generation_id",
"model_config_version",
"model_id",
"project_id",
"prompt",
"ratio",
"reference_asset_ids",
"reference_count",
"reserved_credits",
"status",