-
Notifications
You must be signed in to change notification settings - Fork 528
Finally rename HfInference
to InferenceClient
#1258
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@julien-c to update these snippets, you have to:
cd packages/tasks-gen
pnpm i
pnpm run generate-snippets-fixtures
=> otherwise you'll have conflicts with the formatting. Typically all the ,
and ;
added don't come from the generation code but from your autoformatter I think
oh that was by accident, I thought I was on a different PR 😮💨 |
@coyotte508 does this look ok? i don't know what i'm doing
/** | ||
* For backward compatibility only. | ||
*/ | ||
export class HfInference extends InferenceClient {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backward compatibility line ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have a preference vs. export const HfInference = InferenceClient;
maybe @coyotte508?
Otherwise i'll merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could have slapped @deprecated
on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooh we have this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
CI failure is unrelated/transient (and i get a different failure each time 🥳). I'll try to make it pass one more time then i'll give up. In any case, ready for review! |
yay! i got lucky |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There's no reason the API should be ≠ in Python and JS