This commit is contained in:
Muzhen Gaming
2025-10-15 17:40:40 +08:00
parent bf764fe683
commit 30200bf3bc
5 changed files with 97 additions and 6 deletions

View File

@@ -19,6 +19,10 @@ class Settings:
)
retries: int = 3
request_timeout_s: int = 60
# Configurable API base and key. If left empty, env vars are used.
# Typical base: https://api.openai.com/v1
endpoint_base: str = os.environ.get("OPENAI_BASE_URL", "https://api.openai.com/v1")
api_key: str = os.environ.get("OPENAI_API_KEY", os.environ.get("BG_AGENT_OPENAI_API_KEY", ""))
# Typing and clipboard behavior
type_interval_s: float = 0.015