mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(utils.py): fix linting error
This commit is contained in:
parent
c1633c0f79
commit
4cf293395b
1 changed files with 2 additions and 2 deletions
|
@ -1878,8 +1878,8 @@ def token_counter(
|
||||||
text: Optional[Union[str, List[str]]] = None,
|
text: Optional[Union[str, List[str]]] = None,
|
||||||
messages: Optional[List] = None,
|
messages: Optional[List] = None,
|
||||||
count_response_tokens: Optional[bool] = False,
|
count_response_tokens: Optional[bool] = False,
|
||||||
tools: list[ChatCompletionToolParam] | None = None,
|
tools: Optional[List[ChatCompletionToolParam]] = None,
|
||||||
tool_choice: ChatCompletionNamedToolChoiceParam | None = None,
|
tool_choice: Optional[ChatCompletionNamedToolChoiceParam] = None,
|
||||||
) -> int:
|
) -> int:
|
||||||
"""
|
"""
|
||||||
Count the number of tokens in a given text using a specified model.
|
Count the number of tokens in a given text using a specified model.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue