"Vibe-Trading: Your Personal Trading Agent"
Python ai-agentalgorithmic-tradingbacktestingfintechllmmcpmulti-agentpythonquantitative-financetrading
feat(config): add VIBE_TRADING_ANTHROPIC_PROMPT_CACHE flag
averatec07734bdfd81bb21a
diff --git a/agent/.env.example b/agent/.env.exampleindex c41cc3b75..a23f22bbe 100644--- a/agent/.env.example+++ b/agent/.env.example@@ -156,6 +156,12 @@ MAX_RETRIES=2# Ignore HTTP_PROXY/HTTPS_PROXY for OpenAI-compatible LLM requests only. The# explicit direct transports still honor SSL_CERT_FILE/SSL_CERT_DIR.# VIBE_TRADING_DISABLE_HTTP_PROXY=0+# Anthropic prompt caching (native provider only): requests that carry the agent's+# system prompt get an explicit cache breakpoint on that block plus the top-level+# automatic breakpoint, so the static tools+system prefix is read from cache instead+# of resent at full price on every call. Set to 0 if a compatible proxy rejects the+# cache_control request parameter.+# VIBE_TRADING_ANTHROPIC_PROMPT_CACHE=1# Reasoning effort: none / low / medium / high / max.# ChatOpenAI-compatible providers use their supported Chat Completions reasoningdiff --git a/agent/src/config/env_schema.py b/agent/src/config/env_schema.pyindex 0eeba7cdb..2541b4aed 100644--- a/agent/src/config/env_schema.py+++ b/agent/src/config/env_schema.py@@ -161,6 +161,9 @@ class LLMConfig(_EnvBase):vibe_trading_disable_http_proxy: EnvBool = Field(alias="VIBE_TRADING_DISABLE_HTTP_PROXY", default=False,)+ vibe_trading_anthropic_prompt_cache: EnvBool = Field(+ alias="VIBE_TRADING_ANTHROPIC_PROMPT_CACHE", default=True,+ )# ---------------------------------------------------------------------------