Skip to content

Commit 361d3ed

Browse files
yipframadrienbanse
authored andcommitted
Fix typo
1 parent 5338fe5 commit 361d3ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Below are simple examples demonstrating how to use LLM models with **EcoLogits**
7676
from openai import OpenAI
7777

7878
# Initialize EcoLogits
79-
EcoLogits.init(provider=["openai"])
79+
EcoLogits.init(providers=["openai"])
8080

8181
client = OpenAI(api_key="<OPENAI_API_KEY>")
8282

@@ -115,7 +115,7 @@ Below are simple examples demonstrating how to use LLM models with **EcoLogits**
115115
from anthropic import Anthropic
116116

117117
# Initialize EcoLogits
118-
EcoLogits.init(provider=["anthropic"])
118+
EcoLogits.init(providers=["anthropic"])
119119

120120
client = Anthropic(api_key="<ANTHROPIC_API_KEY>")
121121

@@ -153,7 +153,7 @@ Below are simple examples demonstrating how to use LLM models with **EcoLogits**
153153
from huggingface_hub import InferenceClient
154154

155155
# Initialize EcoLogits
156-
EcoLogits.init(provider=["huggingface_hub"])
156+
EcoLogits.init(providers=["huggingface_hub"])
157157

158158
client = InferenceClient(model="meta-llama/Meta-Llama-3.1-8B")
159159
response = client.chat_completion( # (1)!

0 commit comments

Comments
 (0)