Remove redundant check for api_key attribute (#6460)

Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
krishna soni
2026-07-21 17:47:25 +05:30
committed by GitHub
parent 8005e18aec
commit 2af3a72f73
-5
View File
@@ -35,11 +35,6 @@ class LLMBase(ABC):
if not hasattr(self.config, "model"):
raise ValueError("Configuration must have a 'model' attribute")
if not hasattr(self.config, "api_key") and not hasattr(self.config, "api_key"):
# Check if API key is available via environment variable
# This will be handled by individual providers
pass
def _is_reasoning_model(self, model: str) -> bool:
"""
Check if the model is a reasoning model or GPT-5 series that doesn't support certain parameters.