fix: update test to use authorization parameter instead of headers

For security reasons, reject Authorization header in headers dict and require
use of the dedicated authorization parameter instead.
This commit is contained in:
Omar Abdelwahab 2025-11-06 11:07:21 -08:00
parent 18aff1abaa
commit d58da03e40

View file

@ -260,7 +260,7 @@ def test_response_non_streaming_mcp_tool(compat_client, text_model_id, case, cap
for tool in tools: for tool in tools:
if tool["type"] == "mcp": if tool["type"] == "mcp":
tool["headers"] = {"Authorization": "Bearer test-token"} tool["authorization"] = "test-token"
response = compat_client.responses.create( response = compat_client.responses.create(
model=text_model_id, model=text_model_id,