mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-15 04:19:08 +00:00
Update endpoint URL construction in handler.py
This commit is contained in:
parent
4565df6639
commit
561d84e40f
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class AnthropicCountTokensHandler(AnthropicCountTokensConfig):
|
|||
verbose_logger.debug(f"Transformed request: {request_body}")
|
||||
|
||||
# Get endpoint URL
|
||||
endpoint_url = api_base or self.get_anthropic_count_tokens_endpoint()
|
||||
endpoint_url = f"{api_base}/v1/messages/count_tokens" if api_base else self.get_anthropic_count_tokens_endpoint()
|
||||
|
||||
verbose_logger.debug(f"Making request to: {endpoint_url}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue