Spaces:
Running
Running
Update pipeline.py
Browse files- pipeline.py +2 -3
pipeline.py
CHANGED
@@ -187,10 +187,9 @@ CACHE_SIZE_LIMIT = 1000
|
|
187 |
# except Exception as e:
|
188 |
# logger.error(f"Failed to initialize ChatGroq: {e}")
|
189 |
# raise RuntimeError("ChatGroq initialization failed.") from e
|
190 |
-
from langchain.cache import BaseCache
|
191 |
|
192 |
-
# Define a no-op cache
|
193 |
-
class NoOpCache
|
194 |
def lookup(self, key: str):
|
195 |
return None # Always return None, meaning no cache hit
|
196 |
|
|
|
187 |
# except Exception as e:
|
188 |
# logger.error(f"Failed to initialize ChatGroq: {e}")
|
189 |
# raise RuntimeError("ChatGroq initialization failed.") from e
|
|
|
190 |
|
191 |
+
# Define a minimal no-op cache class
|
192 |
+
class NoOpCache:
|
193 |
def lookup(self, key: str):
|
194 |
return None # Always return None, meaning no cache hit
|
195 |
|