Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api/schema: Make AI schema automatic #2295

Merged
merged 13 commits into from
Sep 17, 2024
Merged

api/schema: Make AI schema automatic #2295

merged 13 commits into from
Sep 17, 2024

Conversation

victorges
Copy link
Member

@victorges victorges commented Aug 21, 2024

What does this pull request do? Explain your changes. (required)
In order to add the AI APIs into our schema I decided to just make this process automatic.
Created a pull-ai-schema script that pulls the schema from the AI Gateway source of
truth (ai-worker) and downloads it to the repository after some changes (like the path prefix).

This will avoid manual work in future updates to this schema, by hopefully being able to
simply run the pull-ai-schema script and have things up to date.

Specific updates (required)

  • Create pull-ai-schema script
  • Implement patches to the schema on that script
  • Implement support for separate AI Schema file on compile-schemas
  • Add tests for new pipeline coming in (segment-anything-2)

How did you test each of these updates (required)

  • yarn pull-ai-schema
  • yarn compile-schemas
  • yarn test
  • Generate Speakeasy SDK using the 2 schema files (need to update their config)

Does this pull request close any open issues?
Implements ENG-2251

Checklist

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@victorges victorges requested a review from a team as a code owner August 21, 2024 23:46
Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 16, 2024 4:18pm

The global $ref is not supported so we need to configure
them as 2 inputs.
Gotta remove the title or it will create duplicate identifiers
for each field.
@victorges victorges changed the title api/schema: Add AI generate APIs to schema api/schema: Make AI schema automatic Sep 16, 2024
@victorges victorges merged commit bb26aab into master Sep 17, 2024
13 checks passed
@victorges victorges deleted the vg/chore/ai-api-docs branch September 17, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants