-
Notifications
You must be signed in to change notification settings - Fork 328
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
Black Forest Labs Image Models #1193
Black Forest Labs Image Models #1193
Conversation
Co-authored-by: Julien Chaumond <[email protected]>
Let's add some tests!You can find examples here: huggingface.js/packages/inference/test/HfInference.spec.ts Lines 776 to 861 in f85f5f7
You will need to override the huggingface.js/packages/inference/test/HfInference.spec.ts Lines 1072 to 1076 in f85f5f7
^ keys of this dict must match the name of a model on the HF Hub Once you've added tests, you can update the VCR tapes (= cached API responses for offline testing) by running this command:
|
@saksham36 let us know if any help is needed! |
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. |
if (provider === "fal-ai" && authMethod === "provider-key") { | ||
headers["Authorization"] = `Key ${accessToken}`; | ||
} else if (provider === "black-forest-labs" && authMethod === "provider-key") { | ||
headers["X-Key"] = accessToken; | ||
} else { | ||
headers["Authorization"] = `Bearer ${accessToken}`; | ||
} |
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.
👍
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.
Thanks @saksham36 for starting the PR and thanks @SBrandeis for pushing it over the finish line! let's go!!
No description provided.