mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-08 12:05:27 +00:00
fix : server cache
This commit is contained in:
parent
8991aaae8d
commit
a667f89c12
@ -13,8 +13,8 @@ class OllamaLLM(GeneratorLLM):
|
|||||||
|
|
||||||
def generate(self, history):
|
def generate(self, history):
|
||||||
self.logger.info(f"Using {self.model} for generation with Ollama")
|
self.logger.info(f"Using {self.model} for generation with Ollama")
|
||||||
if cache.is_cached(history[-1]['content']):
|
if self.cache.is_cached(history[-1]['content']):
|
||||||
self.state.current_buffer = cache.get_cached_response(history[-1]['content'])
|
self.state.current_buffer = self.cache.get_cached_response(history[-1]['content'])
|
||||||
self.state.is_generating = False
|
self.state.is_generating = False
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user