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

Use public Replicate API to fetch model data #12

Merged
merged 7 commits into from
Feb 8, 2024

Conversation

zeke
Copy link
Member

@zeke zeke commented Feb 7, 2024

This PR updates the generator to use the public Replicate API directly to fetch model metadata.

This also removes the dependency on https://github.com/zeke/all-the-public-replicate-models, which guarantees that it'll work for any model the user has access to, instead of just a cached collection of public displayworthy models.

The user's provided API token is used to make the API call to get this model metadata.

Added tests. That was hard.

@zeke zeke marked this pull request as ready for review February 7, 2024 07:06
to make room for it being a Replicate API call
so it can happen after we've set an API token, so we can switch this model metadata fetching step from cache-package-based to using the Replicate API instead
and test it. getting that mocking setup right was the hard part 😅
@zeke zeke force-pushed the use-public-API-to-fetch-model-data branch from 32f14f1 to 9160524 Compare February 7, 2024 08:32
@zeke zeke changed the title Use public api to fetch model data Use public Replicate API to fetch model data Feb 7, 2024
@zeke zeke requested review from a team February 7, 2024 08:33
@zeke zeke merged commit 07c5c4b into main Feb 8, 2024
3 checks passed
@zeke zeke deleted the use-public-API-to-fetch-model-data branch February 8, 2024 17:53
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.

1 participant