CliApp.run(NotPydanticModel) with pytest.raises( SettingsError, match=re.escape('Error: `cli_args` must be list[str] or None when `cli_settings_source` is not used'), ): class Cfg(BaseModel): ... CliApp.run(Cfg,
# Search all versions available on your platform: mamba repoquery search pydantic-settings-sops --channel conda-forge # List packages depending on `pydantic-settings-sops`: mamba repoquery whoneeds pydantic-settings-sops --channel conda-forge # List dependencies of `pydantic-settings-sops`: mamba ...
Settings: Custom parsing of environment variables (non-JSON) Often we want complex environment variables that are not represented as JSON. One example is a list of items. It's not uncommon to comma-delimit lists like this in bash: import...
gemini_safety_settings: list[GeminiSafetySettings] @dataclass(init=False) @@ -192,6 +192,8 @@ async def _make_request( generation_config['presence_penalty'] = presence_penalty if (frequency_penalty := model_settings.get('frequency_penalty')) is not None: generation_config['frequency_penalty...