mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
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:
parent
18aff1abaa
commit
d58da03e40
1 changed files with 1 additions and 1 deletions
|
|
@ -260,7 +260,7 @@ def test_response_non_streaming_mcp_tool(compat_client, text_model_id, case, cap
|
|||
|
||||
for tool in tools:
|
||||
if tool["type"] == "mcp":
|
||||
tool["headers"] = {"Authorization": "Bearer test-token"}
|
||||
tool["authorization"] = "test-token"
|
||||
|
||||
response = compat_client.responses.create(
|
||||
model=text_model_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue