mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Update utils.py
This commit is contained in:
parent
ebfff975d4
commit
e4a0d42cc0
1 changed files with 3 additions and 3 deletions
|
@ -180,9 +180,9 @@ from litellm.types.utils import (
|
|||
all_litellm_params,
|
||||
)
|
||||
|
||||
with resources.open_text(
|
||||
"litellm.litellm_core_utils.tokenizers", "anthropic_tokenizer.json"
|
||||
) as f:
|
||||
with resources.files("litellm.litellm_core_utils.tokenizers") \
|
||||
.joinpath("anthropic_tokenizer.json") \
|
||||
.open("r") as f:
|
||||
json_data = json.load(f)
|
||||
# Convert to str (if necessary)
|
||||
claude_json_str = json.dumps(json_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue