Add api_base parameter to count tokens request

This commit is contained in:
Sunny 2026-07-03 18:05:13 +08:00 • committed by GitHub
parent 4e53ae98a7
commit 74590f0c91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,6 +68,7 @@ class AnthropicTokenCounter(BaseTokenCounter):
model=model_to_use,
messages=messages,
api_key=api_key,
api_base=litellm_params.get("api_base", None)
tools=tools,
system=system,
)