From 189c692cae085b85ae6e07a0866f575f1452d39f Mon Sep 17 00:00:00 2001 From: Vlad Ryzhkov Date: Tue, 8 Jul 2025 16:16:03 -0600 Subject: [PATCH 1/3] Add BagelNet inference provider documentation --- docs/inference-providers/_toctree.yml | 2 + .../inference-providers/providers/bagelnet.md | 39 +++++++++++++++++++ .../inference-providers/scripts/generate.ts | 17 ++++---- .../templates/providers/bagelnet.handlebars | 9 +++++ 4 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 docs/inference-providers/providers/bagelnet.md create mode 100644 scripts/inference-providers/templates/providers/bagelnet.handlebars diff --git a/docs/inference-providers/_toctree.yml b/docs/inference-providers/_toctree.yml index 7b9093114..b3e459ee7 100644 --- a/docs/inference-providers/_toctree.yml +++ b/docs/inference-providers/_toctree.yml @@ -20,6 +20,8 @@ - title: Providers sections: + - local: providers/bagelnet + title: BagelNet - local: providers/cerebras title: Cerebras - local: providers/cohere diff --git a/docs/inference-providers/providers/bagelnet.md b/docs/inference-providers/providers/bagelnet.md new file mode 100644 index 000000000..ea0c6c6f2 --- /dev/null +++ b/docs/inference-providers/providers/bagelnet.md @@ -0,0 +1,39 @@ + + +# BagelNet + +
+ + + + +
+ +
+ + + + +
+ +**Bagel** (https://bagel.net) is a privacy‑first AI research lab behind the **Bakery** platform, enabling creators to fine‑tune open‑source models and secure their work with cryptographic proofs. + +## Supported tasks + diff --git a/scripts/inference-providers/scripts/generate.ts b/scripts/inference-providers/scripts/generate.ts index 5da8d5933..fb29d7858 100644 --- a/scripts/inference-providers/scripts/generate.ts +++ b/scripts/inference-providers/scripts/generate.ts @@ -33,6 +33,7 @@ const HEADERS: Record = process.env.HF_TOKEN : {}; const PROVIDERS_HUB_ORGS: Record = { + bagelnet: "bagelnet", cerebras: "cerebras", cohere: "CohereLabs", "fal-ai": "fal", @@ -50,6 +51,7 @@ const PROVIDERS_HUB_ORGS: Record = { }; const PROVIDERS_URLS: Record = { + bagelnet: "https://bagel.net/", cerebras: "https://www.cerebras.ai/", cohere: "https://cohere.com/", "fal-ai": "https://fal.ai/", @@ -120,15 +122,14 @@ await Promise.all( >; for (const [task, models] of Object.entries(mapping)) { - const hasLiveModel = Object.values(models).some( - (model) => model.status === "live", - ); - - if (hasLiveModel) { - if (!PER_TASK_SUPPORTED_PROVIDERS[task]) { - PER_TASK_SUPPORTED_PROVIDERS[task] = []; + 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; } - PER_TASK_SUPPORTED_PROVIDERS[task].push(provider); } } }), diff --git a/scripts/inference-providers/templates/providers/bagelnet.handlebars b/scripts/inference-providers/templates/providers/bagelnet.handlebars new file mode 100644 index 000000000..c6092af6b --- /dev/null +++ b/scripts/inference-providers/templates/providers/bagelnet.handlebars @@ -0,0 +1,9 @@ +# BagelNet + +{{{logoSection}}} + +{{{followUsSection}}} + +**Bagel** (https://bagel.net) is a privacy‑first AI research lab behind the **Bakery** platform, enabling creators to fine‑tune open‑source models and secure their work with cryptographic proofs. + +{{{tasksSection}}} \ No newline at end of file From c523a94a9b72e7474d87155f77d75d0b656c3f5d Mon Sep 17 00:00:00 2001 From: Vlad Ryzhkov Date: Tue, 8 Jul 2025 16:27:03 -0600 Subject: [PATCH 2/3] Fix generate.ts logic to match upstream --- scripts/inference-providers/scripts/generate.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/inference-providers/scripts/generate.ts b/scripts/inference-providers/scripts/generate.ts index fb29d7858..2076114bc 100644 --- a/scripts/inference-providers/scripts/generate.ts +++ b/scripts/inference-providers/scripts/generate.ts @@ -122,14 +122,15 @@ await Promise.all( >; for (const [task, models] of Object.entries(mapping)) { - 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); } } }), From bd349e120966ab77e2b8c79c0bd3ae6bd93396d5 Mon Sep 17 00:00:00 2001 From: Vlad Ryzhkov Date: Tue, 8 Jul 2025 16:36:09 -0600 Subject: [PATCH 3/3] Add BagelNet to index --- docs/inference-providers/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/inference-providers/index.md b/docs/inference-providers/index.md index 2f4b94065..665762183 100644 --- a/docs/inference-providers/index.md +++ b/docs/inference-providers/index.md @@ -13,6 +13,7 @@ Our platform integrates with leading AI infrastructure providers, giving you acc | Provider | Chat completion (LLM) | Chat completion (VLM) | Feature Extraction | Text to Image | Text to video | Speech to text | | -------------------------------------------- | :-------------------: | :-------------------: | :----------------: | :-----------: | :-----------: | :------------: | +| [BagelNet](./providers/bagelnet) | ✅ | ✅ | | ✅ | ✅ | | | [Cerebras](./providers/cerebras) | ✅ | | | | | | | [Cohere](./providers/cohere) | ✅ | ✅ | | | | | | [Fal AI](./providers/fal-ai) | | | | ✅ | ✅ | ✅ |