mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Code Quality Improvement - remove tokenizers/
from /llms (#7163)
* move tokenizers out of /llms * use updated tokenizers location * fix test_google_secret_manager_read_in_memory
This commit is contained in:
parent
350cfc36f7
commit
3055d9b81c
8 changed files with 4 additions and 4 deletions
|
@ -135,7 +135,7 @@ from litellm.types.utils import (
|
|||
Usage,
|
||||
)
|
||||
|
||||
with resources.open_text("litellm.llms.tokenizers", "anthropic_tokenizer.json") as f:
|
||||
with resources.open_text("litellm.litellm_core_utils.tokenizers", "anthropic_tokenizer.json") 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