Skip to content

Commit 075f32d

Browse files
committed
Fix CI bot
1 parent 01baa08 commit 075f32d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/api_inference_generate_documentation.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Update Inference Providers Documentation
1+
name: Generate Inference Providers Documentation
22

33
on:
44
workflow_dispatch:
55
schedule:
66
- cron: "0 3 * * *" # Every day at 3am
77

88
concurrency:
9-
group: api_inference_generate_documentation
9+
group: generate_inference_providers_documentation
1010
cancel-in-progress: true
1111

1212
jobs:
@@ -29,7 +29,7 @@ jobs:
2929
- name: Update huggingface/tasks package
3030
working-directory: ./scripts/inference-providers
3131
run: |
32-
pnpm update @huggingface/tasks@latest
32+
pnpm update @huggingface/tasks@latest @huggingface/inference@latest
3333
# Generate
3434
- name: Generate Inference Providers documentation
3535
run: pnpm run generate
@@ -62,14 +62,14 @@ jobs:
6262
delete-branch: true
6363
title: "[Bot] Update Inference Providers documentation"
6464
body: |
65-
This PR automatically upgrades the `@huggingface/tasks` package and regenerates the Inference Providers documentation by running:
65+
This PR automatically upgrades the `@huggingface/tasks` and `@huggingface/inference` packages and regenerates the Inference Providers documentation by running:
6666
```sh
6767
cd scripts/inference-providers
68-
pnpm update @huggingface/tasks@latest
68+
pnpm update @huggingface/tasks@latest @huggingface/inference@latest
6969
pnpm run generate
7070
```
7171
72-
This PR was automatically created by the [Update Inference Providers Documentation workflow](https://github.com/huggingface/hub-docs/blob/main/.github/workflows/api_inference_generate_documentation.yml).
72+
This PR was automatically created by the [Update Inference Providers Documentation workflow](https://github.com/huggingface/hub-docs/blob/main/.github/workflows/generate_inference_providers_documentation.yml).
7373
7474
Please review the changes before merging.
7575
reviewers: |

scripts/inference-providers/scripts/generate.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,10 @@ async function fetchWarmModels(
510510
inferenceProviderMapping: Record<string, string>[];
511511
tags: string[];
512512
}[];
513-
if (modelsData.length === 0) {
513+
if (modelsData.length === 0 || modelsData[0] === undefined) {
514+
console.warn(
515+
` ⚠️ No warm model found for ${task} from ${provider}`
516+
);
514517
return;
515518
}
516519

0 commit comments

Comments
 (0)