Skip to content

Commit 01baa08

Browse files
[Inference Providers] more precise JS integration guidelines (#1686)
* oversights * Update docs/inference-providers/register-as-a-provider.md Co-authored-by: Julien Chaumond <[email protected]> --------- Co-authored-by: Julien Chaumond <[email protected]>
1 parent aa32603 commit 01baa08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/inference-providers/register-as-a-provider.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ For text-generation and conversational tasks, you can just inherit from `BaseTex
117117

118118
### Register the provider
119119

120-
Go to [packages/inference/src/lib/getProviderHelper.ts](https://github.com/huggingface/huggingface.js//blob/main/packages/inference/src/lib/getProviderHelper.ts) and add your provider to `PROVIDERS`. Please try to respect alphabetical order.
120+
Go to [packages/inference/src/lib/getProviderHelper.ts](https://github.com/huggingface/huggingface.js//blob/main/packages/inference/src/lib/getProviderHelper.ts) and add your provider to `PROVIDERS`. You will need to add your provider to the `INFERENCE_PROVIDERS` list as well in [packages/inference/src/types.ts](https://github.com/huggingface/huggingface.js//blob/main/packages/inference/src/types.ts). Please try to respect alphabetical order.
121121

122+
Update the [README.md](https://github.com/huggingface/huggingface.js/blob/main/packages/inference/README.md) in the `packages/inference` directory to include your provider in the list of supported providers and the list of supported models links.
122123

123124
## 3. Model Mapping API
124125

0 commit comments

Comments
 (0)