78751f2c6d
All LLM parameters must now be explicitly set in .env — no silent fallbacks in code. Added nvidia_enable_thinking bool and wired it into the chat completion extra_body instead of the previous hardcoded True. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
412 B
Python
20 lines
412 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
nvidia_api_key: str
|
|
app_password: str
|
|
nvidia_base_url: str
|
|
nvidia_model: str
|
|
nvidia_timeout_seconds: int
|
|
nvidia_max_tokens: int
|
|
nvidia_temperature: float
|
|
nvidia_top_p: float
|
|
nvidia_reasoning_budget: int
|
|
nvidia_enable_thinking: bool
|
|
|
|
model_config = {"env_file": ".env"}
|
|
|
|
|
|
settings = Settings()
|