-
Notifications
You must be signed in to change notification settings - Fork 339
[Bot] Update Inference Providers documentation #1788
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
….com:huggingface/hub-docs into update-inference-providers-docs-automated-pr
….com:huggingface/hub-docs into update-inference-providers-docs-automated-pr
….com:huggingface/hub-docs into update-inference-providers-docs-automated-pr
CI should be fixed by huggingface/doc-builder#574 when merged |
737deae
to
6af7867
Compare
bf7588a
to
a5e7c25
Compare
a5e7c25
to
4a5cf0c
Compare
….com:huggingface/hub-docs into update-inference-providers-docs-automated-pr
for (const [modelId, modelMapping] of Object.entries(models)) { | ||
if (modelMapping.status == "live") { | ||
if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { | ||
PER_TASK_SUPPORTED_PROVIDERS[task] = []; | ||
} | ||
PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); | ||
break; | ||
const hasLiveModel = Object.values(models).some( | ||
(model) => model.status === "live", | ||
); | ||
|
||
if (hasLiveModel) { | ||
if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { | ||
PER_TASK_SUPPORTED_PROVIDERS[task] = []; | ||
} | ||
PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); |
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.
@Wauplin I added this to ensure that tasks with only staging models are not considered. the CI should be 🟢 now
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!
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. |
for (const [modelId, modelMapping] of Object.entries(models)) { | ||
if (modelMapping.status == "live") { | ||
if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { | ||
PER_TASK_SUPPORTED_PROVIDERS[task] = []; | ||
} | ||
PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); | ||
break; | ||
const hasLiveModel = Object.values(models).some( | ||
(model) => model.status === "live", | ||
); | ||
|
||
if (hasLiveModel) { | ||
if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { | ||
PER_TASK_SUPPORTED_PROVIDERS[task] = []; | ||
} | ||
PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); |
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!
This PR automatically upgrades the
@huggingface/tasks
and@huggingface/inference
packages and regenerates the Inference Providers documentation by running:cd scripts/inference-providers pnpm update @huggingface/tasks@latest @huggingface/inference@latest pnpm run generate
This PR was automatically created by the Update Inference Providers Documentation workflow.
Please review the changes before merging.