fix(js-sdk): fix types in session.chat (#1925)

Co-authored-by: zwingzheng <zwingzheng@tencent.com>
Co-authored-by: rekram1-node <aidenpcline@gmail.com>
This commit is contained in:
zWing
2025-08-21 23:44:20 +08:00
committed by GitHub
parent 2ff4cd2c2b
commit bca523eb63
6 changed files with 42 additions and 7 deletions

View File

@@ -611,7 +611,10 @@ export namespace Server {
description: "Created message",
content: {
"application/json": {
schema: resolver(MessageV2.Assistant),
schema: resolver(z.object({
info: MessageV2.Assistant,
parts: MessageV2.Part.array(),
})),
},
},
},