LLMConfig (datamind/config.py)

DataMind · datamind/config.py · python · Apache-2.0
ai

DataMind v1.0 configuration. Nested `pydantic-settings` with env prefix `DATAMIND__` and double-underscore delimiter. Example: DATAMIND__LLM__API_BASE=https://gateway.example.com DATAMIND__LLM__MODEL=claude-sonnet-4-6 DATAMIND__EMBEDDING__PROVIDER=openai DATAMIND__DB__DIALECT=mys

# Source: https://github.com/OpenDCAI/DataMind | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""DataMind v1.0 configuration.

Nested `pydantic-settings` with env prefix `DATAMIND__` and double-underscore
delimiter. Example:

    DATAMIND__LLM__API_BASE=https://gateway.example.com
    DATAMIND__LLM__MODEL=claude-sonnet-4-6
    DATAMIND__EMBEDDING__PROVIDER=openai
    DATAMIND__DB__DIALECT=mysql

Design choices:
- SecretStr for credentials so they never leak into repr / logs.
- Every extensible axis is just a string name that keys into a Registry
  (provider / dialect / strategy / backend). Adding a new option is a pure
  "register a class" operation — config.py doesn't change.
- `

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key