fix: allow null id in JSONRPCError per JSON-RPC 2.0 spec (#2056)
This commit is contained in:
parent
3b53fb9a00
commit
705497a593
1 changed files with 151 additions and 24 deletions
|
|
@ -260,7 +260,7 @@ class StreamableHTTPTransport:
|
|||
async with ctx.client.stream(
|
||||
"POST",
|
||||
self.url,
|
||||
json=message.model_dump(by_alias=True, mode="json", exclude_none=True),
|
||||
json=message.model_dump(by_alias=True, mode="json", exclude_unset=True),
|
||||
headers=headers,
|
||||
) as response:
|
||||
if response.status_code == 202:
|
||||
|
|
|
|||
Loading…
Reference in a new issue