Skip to content

"Vibe-Trading: Your Personal Trading Agent"

fix(provider): compare explicit header names case-insensitively

zeus229a46c7ddb9fb3
diff --git a/agent/src/providers/llm.py b/agent/src/providers/llm.py
index 5928f65cb..bf6d436dd 100644
--- a/agent/src/providers/llm.py
+++ b/agent/src/providers/llm.py
@@ -319,7 +319,7 @@ if ChatOpenAI is not None:
# shares a stable conversation identity.
self._vibe_fallback_session_id = uuid.uuid4().hex
self._vibe_ambient_header_names = tuple(
- name for name in ambient_names if name not in explicit_names
+ name for name in ambient_names if name.lower() not in explicit_names_lower
)
self._vibe_has_explicit_authorization = (
"authorization" in explicit_names_lower