Skip to content

Commit 73bdddd

Browse files
committed
Patch LitellmModel.
1 parent 3362dae commit 73bdddd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

knowledge_storm/lm.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
litellm.drop_params = True
3838
litellm.telemetry = False
3939

40-
from litellm.caching.caching import Cache
40+
from litellm.caching import Cache
4141

4242
disk_cache_dir = os.path.join(Path.home(), ".storm_local_cache")
4343
litellm.cache = Cache(disk_cache_dir=disk_cache_dir, type="disk")
@@ -190,7 +190,10 @@ def _inspect_history(lm, n: int = 1):
190190

191191

192192
class LitellmModel(LM):
193-
"""A wrapper class for dspy.OpenAI."""
193+
"""A wrapper class for LiteLLM.
194+
195+
Check out https://docs.litellm.ai/docs/providers for usage details.
196+
"""
194197

195198
def __init__(
196199
self,

0 commit comments

Comments
 (0)