configuration: added tests

This commit is contained in:
2023-09-08 10:40:22 +02:00
committed by Oleksandr Kozachuk
parent ecb6994783
commit c52713c833
2 changed files with 161 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ def ai_config_instance(name: str, conf_dict: Optional[dict[str, Any]] = None) ->
else:
return OpenAIConfig.from_dict(conf_dict)
else:
raise ConfigError(f"AI '{name}' is not supported")
raise ConfigError(f"Unknown AI '{name}'")
def create_default_ai_configs() -> dict[str, AIConfig]: