settings
marvin.settings
¶
OpenAISettings
¶
Provider-specific settings. Only some of these will be relevant to users.
Settings
¶
Marvin settings
temporary_settings
¶
Temporarily override Marvin setting values. This will not mutate values that have been already been accessed at module load time.
This function should only be used for testing.
Example
from marvin.settings import settings with temporary_settings(MARVIN_LLM_MAX_TOKENS=100): assert settings.llm_max_tokens == 100 assert settings.llm_max_tokens == 1500