debug log: Using general model configuration for unknown LLM key (#2223)

This commit is contained in:
Shuchang Zheng 2025-04-24 02:08:00 +08:00 committed by GitHub
parent bee22e5777
commit ef36125b91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,6 @@ class LLMConfigRegistry:
def get_config(cls, llm_key: str) -> LLMRouterConfig | LLMConfig:
if llm_key not in cls._configs:
# If the key is not found in registered configs, treat it as a general model
LOG.info("Using general model configuration for unknown LLM key", llm_key=llm_key)
if not llm_key:
raise InvalidLLMConfigError(f"LLM_KEY not set for {llm_key}")
return LLMConfig(