mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
updated a comment in mcp.py
This commit is contained in:
parent
e6c6c36b70
commit
68b8f74a19
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ async def list_mcp_tools(
|
||||||
List of tool definitions from the MCP server
|
List of tool definitions from the MCP server
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: If both headers contains Authorization and authorization parameter is provided
|
ValueError: If Authorization is found in the headers parameter
|
||||||
"""
|
"""
|
||||||
# Prepare headers with authorization handling
|
# Prepare headers with authorization handling
|
||||||
final_headers = prepare_mcp_headers(headers, authorization)
|
final_headers = prepare_mcp_headers(headers, authorization)
|
||||||
|
|
@ -205,7 +205,7 @@ async def invoke_mcp_tool(
|
||||||
Tool invocation result with content and error information
|
Tool invocation result with content and error information
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: If both headers contains Authorization and authorization parameter is provided
|
ValueError: If Authorization header is found in the headers parameter
|
||||||
"""
|
"""
|
||||||
# Prepare headers with authorization handling
|
# Prepare headers with authorization handling
|
||||||
final_headers = prepare_mcp_headers(headers, authorization)
|
final_headers = prepare_mcp_headers(headers, authorization)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue