File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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)!
You can’t perform that action at this time.
0 commit comments