Skip to content

Better typing + make task functions generic #1338

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

Merged
merged 10 commits into from
Apr 4, 2025

Conversation

hanouticelina
Copy link
Contributor

This PR introduces task helpers to achieve better typing of the getProviderHelper, this is inspired by @SBrandeis demonstration PR #1332, without reversing the mapping. There is a lot of diff (sorry for that) because I isolated every HF inference API-specific code into the provider file and there are a lot of supported tasks 😬

@hanouticelina hanouticelina requested a review from SBrandeis April 4, 2025 11:55
@hanouticelina hanouticelina requested a review from julien-c as a code owner April 4, 2025 11:55
Copy link
Contributor

@SBrandeis SBrandeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean af 👌 🧼

@hanouticelina
Copy link
Contributor Author

merging the changes into #1315

@hanouticelina hanouticelina merged commit 7782f2b into refactor-providers Apr 4, 2025
5 checks passed
@hanouticelina hanouticelina deleted the better-typing branch April 4, 2025 13:17
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