openai-node icon indicating copy to clipboard operation
openai-node copied to clipboard

No TS type for streamed data — uses `message` instead of `delta`

Open brandonmcconnell opened this issue 2 years ago • 0 comments

Describe the bug

Streamed data still uses CreateChatCompletionResponseChoicesInner type which still contains message instead of delta.

image image

To Reproduce

Reference the CreateChatCompletionResponseChoicesInner TS type

Code snippets

No response

OS

macOS v13.1 (22C65)

Node version

node v18.12.1

Library version

openai v3.2.1

brandonmcconnell avatar Mar 03 '23 01:03 brandonmcconnell