(message: Record<string, unknown>, requestId: string)
| 121 | } |
| 122 | |
| 123 | function isRequestNotification(message: Record<string, unknown>, requestId: string): boolean { |
| 124 | const params = message.params |
| 125 | if (!params || typeof params !== 'object') { |
| 126 | return false |
| 127 | } |
| 128 | const id = (params as { id?: unknown }).id |
| 129 | return id === undefined || id === null || id === requestId |
| 130 | } |
| 131 | |
| 132 | export function createNativeOpenAICompatWsV2Transport( |
| 133 | binding: NativeWsV2Binding | null = loadNativeBinding(), |