Add files via upload
initial commit
This commit is contained in:
parent
8d3d5ff628
commit
b33bb415dd
24 changed files with 4840 additions and 0 deletions
54
semantic_llm_cache/__init__.py
Normal file
54
semantic_llm_cache/__init__.py
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
"""
|
||||
llm-semantic-cache: Semantic caching for LLM API calls.
|
||||
|
||||
Cut LLM costs 30% with one decorator.
|
||||
"""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
__author__ = "Karthick Raja M"
|
||||
__license__ = "MIT"
|
||||
|
||||
# Core exports
|
||||
from semantic_llm_cache.config import CacheConfig
|
||||
from semantic_llm_cache.core import (
|
||||
CacheContext,
|
||||
CachedLLM,
|
||||
cache,
|
||||
get_default_backend,
|
||||
set_default_backend,
|
||||
)
|
||||
from semantic_llm_cache.exceptions import (
|
||||
CacheBackendError,
|
||||
CacheNotFoundError,
|
||||
CacheSerializationError,
|
||||
PromptCacheError,
|
||||
)
|
||||
from semantic_llm_cache.stats import CacheStats, clear_cache, get_stats, invalidate
|
||||
from semantic_llm_cache.storage import StorageBackend
|
||||
|
||||
__all__ = [
|
||||
# Version info
|
||||
"__version__",
|
||||
"__author__",
|
||||
"__license__",
|
||||
# Core API
|
||||
"cache",
|
||||
"CacheContext",
|
||||
"CachedLLM",
|
||||
"get_default_backend",
|
||||
"set_default_backend",
|
||||
# Storage
|
||||
"StorageBackend",
|
||||
# Statistics
|
||||
"CacheStats",
|
||||
"get_stats",
|
||||
"clear_cache",
|
||||
"invalidate",
|
||||
# Configuration
|
||||
"CacheConfig",
|
||||
# Exceptions
|
||||
"PromptCacheError",
|
||||
"CacheBackendError",
|
||||
"CacheSerializationError",
|
||||
"CacheNotFoundError",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue