Skip to content

Commit

Permalink
chore(ai): update AI subnet OpenAPI spec
Browse files Browse the repository at this point in the history
This commit updates the AI subnet OpenApi spec so that the reference
documentation correctly represents the new `num_inference_steps`
parameter introduced in livepeer/ai-worker#80.
  • Loading branch information
rickstaa committed May 13, 2024
1 parent 8bc7f00 commit c652980
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions ai/api-reference/ai-openapi-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,6 @@ servers:
- url: https://dream-gateway.livepeer.cloud
description: Livepeer Cloud Community Gateway
paths:
/health:
get:
summary: Health
operationId: health
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/HealthCheck'
/text-to-image:
post:
summary: Text To Image
Expand Down Expand Up @@ -174,9 +163,9 @@ components:
default: 1
type: object
required:
- model_id
- prompt
- image
- model_id
title: Body_image_to_image_image_to_image_post
Body_image_to_video_image_to_video_post:
properties:
Expand Down Expand Up @@ -213,8 +202,8 @@ components:
title: Seed
type: object
required:
- model_id
- image
- model_id
title: Body_image_to_video_image_to_video_post
HTTPError:
properties:
Expand Down Expand Up @@ -291,14 +280,18 @@ components:
seed:
type: integer
title: Seed
num_inference_steps:
type: integer
title: Num Inference Steps
default: 50
num_images_per_prompt:
type: integer
title: Num Images Per Prompt
default: 1
type: object
required:
- model_id
- prompt
- model_id
title: TextToImageParams
ValidationError:
properties:
Expand Down

0 comments on commit c652980

Please sign in to comment.