Validate that required configuration is present.
(cls)
| 59 | |
| 60 | @classmethod |
| 61 | def validate(cls) -> None: |
| 62 | """Validate that required configuration is present.""" |
| 63 | if cls.LLM_PROVIDER == "groq" and not cls.GROQ_API_KEY: |
| 64 | raise ValueError("GROQ_API_KEY is required when using Groq provider") |
| 65 | elif cls.LLM_PROVIDER == "openai" and not cls.OPENAI_API_KEY: |
| 66 | raise ValueError("OPENAI_API_KEY is required when using OpenAI provider") |
| 67 | # Bedrock uses AWS credential chain, no explicit validation needed |