mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Exclude Nones
This commit is contained in:
@@ -104,7 +104,7 @@ async def sse_client(url: str, headers: dict[str, Any] | None = None, timeout: f
|
||||
logger.debug(f"Sending client message: {message}")
|
||||
response = await client.post(
|
||||
endpoint_url,
|
||||
json=message.model_dump(by_alias=True, mode="json"),
|
||||
json=message.model_dump(by_alias=True, mode="json", exclude_none=True),
|
||||
)
|
||||
response.raise_for_status()
|
||||
logger.debug(
|
||||
|
||||
Reference in New Issue
Block a user