Sync config defaults and proxy docs
Some checks are pending
CI / checks (push) Waiting to run

This commit is contained in:
Alishahryar1 2026-04-22 17:34:00 -07:00
parent 4fdf7e8b7e
commit 55131019e1
3 changed files with 12 additions and 3 deletions

View file

@ -16,16 +16,21 @@ class TestSettings:
settings = Settings()
assert settings is not None
def test_default_values(self):
def test_default_values(self, monkeypatch):
"""Test default values are set and have correct types."""
from config.settings import Settings
monkeypatch.delenv("MODEL", raising=False)
monkeypatch.delenv("HTTP_READ_TIMEOUT", raising=False)
monkeypatch.setitem(Settings.model_config, "env_file", ())
settings = Settings()
assert settings.model == "nvidia_nim/stepfun-ai/step-3.5-flash"
assert isinstance(settings.provider_rate_limit, int)
assert isinstance(settings.provider_rate_window, int)
assert isinstance(settings.nim.temperature, float)
assert isinstance(settings.fast_prefix_detection, bool)
assert isinstance(settings.enable_thinking, bool)
assert settings.http_read_timeout == 120.0
def test_get_settings_cached(self):
"""Test get_settings returns cached instance."""