refactor: address code review feedback on MCP tool calling
This commit is contained in:
committed by
GitHub
parent
76c6086db3
commit
51188fe3bd
@@ -40,7 +40,7 @@ class ToolClient:
|
||||
def _headers(self) -> dict[str, str]:
|
||||
headers: dict[str, str] = {"Accept": "application/json"}
|
||||
if self._api_key:
|
||||
headers["Authorization"] = "Bearer " + self._api_key
|
||||
headers["Authorization"] = "Bearer " + self._api_key.strip()
|
||||
return headers
|
||||
|
||||
async def get_spec(self) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user