Skip to content

Commit 01be746

Browse files
committed
fix snippet
1 parent 5fc2594 commit 01be746

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/inference-providers/pricing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ from openai import OpenAI
134134
client = OpenAI(
135135
base_url="https://router.huggingface.co/v1",
136136
api_key=os.environ["HF_TOKEN"],
137-
extra_headers={"X-HF-Bill-To": "my-org-name"},
137+
138138
)
139139

140140
completion = client.chat.completions.create(
@@ -145,6 +145,7 @@ completion = client.chat.completions.create(
145145
"content": "How many 'G's in 'huggingface'?"
146146
}
147147
],
148+
extra_headers={"X-HF-Bill-To": "my-org-name"},
148149
)
149150

150151
print(completion.choices[0].message)

0 commit comments

Comments
 (0)