Update hf_client.py
Browse files- hf_client.py +5 -3
hf_client.py
CHANGED
|
@@ -13,11 +13,13 @@ def get_inference_client(model_id, provider="auto"):
|
|
| 13 |
if model_id == "moonshotai/Kimi-K2-Instruct":
|
| 14 |
provider = "groq"
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
| 17 |
return InferenceClient(
|
| 18 |
provider=provider,
|
| 19 |
-
api_key=HF_TOKEN
|
| 20 |
-
|
| 21 |
)
|
| 22 |
|
| 23 |
# Tavily Search Client
|
|
|
|
| 13 |
if model_id == "moonshotai/Kimi-K2-Instruct":
|
| 14 |
provider = "groq"
|
| 15 |
|
| 16 |
+
# When using a third-party provider, simply specify the provider.
|
| 17 |
+
# Billing will automatically default to the account associated with the HF_TOKEN.
|
| 18 |
+
# The 'bill_to' parameter is NOT needed for personal billing.
|
| 19 |
return InferenceClient(
|
| 20 |
provider=provider,
|
| 21 |
+
api_key=HF_TOKEN
|
| 22 |
+
# The `bill_to` parameter has been removed.
|
| 23 |
)
|
| 24 |
|
| 25 |
# Tavily Search Client
|