mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
(feat) add cache context manager
This commit is contained in:
parent
231148ed73
commit
ddddfe6602
2 changed files with 58 additions and 0 deletions
|
@ -71,6 +71,7 @@ from .llms.prompt_templates.factory import (
|
|||
import tiktoken
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from typing import Callable, List, Optional, Dict, Union, Mapping
|
||||
from .caching import enable_cache, disable_cache
|
||||
|
||||
encoding = tiktoken.get_encoding("cl100k_base")
|
||||
from litellm.utils import (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue