-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/schema: Make AI schema automatic (#2295)
* api/schema: Add AI generate APIs to schema Mostly translated from the AI API schema at https://github.com/livepeer/livepeer-ai-sdks/blob/main/openapi_ai_gateway.json Converted to JSON then made several adjustments. * api/schema: Add tag definition * api: Move compile-schemas to schema folde * api: Reference AI Runner schema instead of duplicating * api: Adjust API handlers to new ai schema * api/schema: Avoid circular references between ai-api schemas * api/schema: Make the openapi ref indirect The global $ref is not supported so we need to configure them as 2 inputs. * pkg: Allow running schema scripts from root * api/schema: Fix TypeScript generation for AI types Gotta remove the title or it will create duplicate identifiers for each field. * api/schema: Update schema README * api/schema: Fix patching of AI input payloads * api/schema: Stop prettying AI schema file * api: Add test for segment-anything-2
- Loading branch information
Showing
11 changed files
with
1,134 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.