Skip to content

bug fix: Example code for streaming output in the chat_completions.ts…#157

Open
xander-art wants to merge 1 commit intoTencentCloud:masterfrom
xander-art:master
Open

bug fix: Example code for streaming output in the chat_completions.ts…#157
xander-art wants to merge 1 commit intoTencentCloud:masterfrom
xander-art:master

Conversation

@xander-art
Copy link

  • Example code for streaming output in the chat_completions.ts

}).then(
async (res) => {
res.on('message', (message) => {
(res as SSEResponseModel).on('message', (message) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里让推导出来的 res 直接带类型更合适,我们再研究下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments