Phoenix21 commited on
Commit
c1057bc
·
verified ·
1 Parent(s): e325864

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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 that does nothing
193
- class NoOpCache(BaseCache):
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