# 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 ...
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...
Meaning later files in the list will take priority over earlier files. # config.toml app_name = "Python Application" description = "Test application description" // config.json { "description": "Description from JSON file", "log_level": "WARNING" } from pydantic_config import SettingsModel,...
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...
import streamlit_pydantic as sp class SubModel(BaseModel): things_i_like: List[str] class MySettings(sp.StreamlitSettings): username: str = Field(..., description="The username for the database.") password: SecretStr my_cool_secrets: SubModel st.json(MySettings().dict())10...