mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 21:11:43 +00:00
Harrison/cache (#343)
This commit is contained in:
@@ -33,7 +33,7 @@ class FakeListLLM(LLM, BaseModel):
|
||||
"""Return type of llm."""
|
||||
return "fake_list"
|
||||
|
||||
def __call__(self, prompt: str, stop: Optional[List[str]] = None) -> str:
|
||||
def _call(self, prompt: str, stop: Optional[List[str]] = None) -> str:
|
||||
"""Increment counter, and then return response in that index."""
|
||||
self.i += 1
|
||||
return self.responses[self.i]
|
||||
|
Reference in New Issue
Block a user