-
Notifications
You must be signed in to change notification settings - Fork 314
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
[inference] fold openai support into provider
param
#1205
Conversation
@@ -757,7 +757,7 @@ describe.concurrent("HfInference", () => { | |||
const hf = new HfInference(OPENAI_KEY); | |||
const stream = hf.chatCompletionStream({ | |||
provider: "openai", | |||
model: "openai/gpt-3.5-turbo", |
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.
i'm wondering if we should still namespace model names and strip it in the implem? (just to keep consistency with HF repos..) 🤷
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.
I find it a bit redundant but ok to switch if you prefer
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.
(what if they OS it at some point in the future? etc)
I addressed the comment but won't continue until we know which direction we want to take. Just let me know and I'll check the tests |
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.
i can't self-approve (even though it's basically only @Wauplin's work 😁) but IMO this is good to go 👍
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.
Approving it, though it doesn't count much ^^
provider
paramprovider
param
ie. no need to override a
endpoint
anymoreThis only works in "client-side" mode ie when passing a provider key
WDYT?