Skip to content

Commit 45e45b9

Browse files
committed
Fix more LLM mistakes in doc
1 parent 036d458 commit 45e45b9

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

examples/server/server_doc.yaml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ paths:
8484
content:
8585
application/json:
8686
schema:
87-
type: object
87+
$ref: '#/components/schemas/ResultResponse'
8888
'404':
8989
description: Task not found
9090
content:
@@ -327,14 +327,44 @@ components:
327327
name:
328328
type: string
329329

330-
GenerationResponse:
330+
ResultResponse:
331331
type: object
332332
properties:
333+
status:
334+
type: string
335+
description: Can be one of [""Pending"", "Loading", ""Working"", ""Decoding"", ""Done"", ""Failed""]
333336
data:
334337
type: array
335-
description: Array of generated image objects (usually base64).
338+
description: Array of generated image objects.
336339
items:
337-
type: string
340+
type: object
341+
properties:
342+
width:
343+
type: integer
344+
height:
345+
type: integer
346+
channel:
347+
type: integer
348+
data:
349+
type: string
350+
description: Base64 encoded image data.
351+
encoding:
352+
type: string
353+
description: Encoding format (e.g., "png").
354+
step:
355+
type: integer
356+
description: Current step number to track progress of the tasks current status
357+
steps:
358+
type: integer
359+
description: Total number of steps for the task's current status
360+
eta:
361+
deprecated: true
362+
description: Not implemented
363+
364+
365+
GenerationResponse:
366+
type: object
367+
properties:
338368
task_id:
339369
type: string
340370
description: Task ID if processed asynchronously.

0 commit comments

Comments
 (0)