Skip to content

Commit 1d401e6

Browse files
committed
some docs tweaks
1 parent d2fa134 commit 1d401e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ await uploadFile({
3131

3232
await inference.chatCompletion({
3333
model: "meta-llama/Llama-3.1-8B-Instruct",
34+
provider: "sambanova", // or together, fal-ai, replicate, cohere …
3435
messages: [
3536
{
3637
role: "user",
@@ -39,11 +40,11 @@ await inference.chatCompletion({
3940
],
4041
max_tokens: 512,
4142
temperature: 0.5,
42-
provider: "sambanova", // or together, fal-ai, replicate, cohere …
4343
});
4444

4545
await inference.textToImage({
4646
model: "black-forest-labs/FLUX.1-dev",
47+
provider: "replicate",
4748
inputs: "a picture of a green bird",
4849
});
4950

@@ -54,7 +55,7 @@ await inference.textToImage({
5455

5556
This is a collection of JS libraries to interact with the Hugging Face API, with TS types included.
5657

57-
- [@huggingface/inference](packages/inference/README.md): Use HF Inference API (serverless), Inference Endpoints (dedicated) and third-party Inference Providers to make calls to 100,000+ Machine Learning models
58+
- [@huggingface/inference](packages/inference/README.md): Use HF Inference API (serverless), Inference Endpoints (dedicated) and all supported Inference Providers to make calls to 100,000+ Machine Learning models
5859
- [@huggingface/hub](packages/hub/README.md): Interact with huggingface.co to create or delete repos and commit / download files
5960
- [@huggingface/agents](packages/agents/README.md): Interact with HF models through a natural language interface
6061
- [@huggingface/gguf](packages/gguf/README.md): A GGUF parser that works on remotely hosted files.

0 commit comments

Comments
 (0)