You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mistral: Argument of type 'AsyncGenerator<ChatCompletionResponseChunk, void, unknown>' is not assignable to parameter of type 'Response | AsyncIterableOpenAIStreamReturnTypes'.#936
Closed
baptisteArno opened this issue
Jan 22, 2024
· 1 comment
But there is now a type mismatch when piping the stream response to OpenAIStream
Code example
constresponse=client.chatStream({model: options.model,messages: parseMessages({ options, variables }),})returnOpenAIStream(response)// ^^^ Argument of type 'AsyncGenerator<ChatCompletionResponseChunk, void, unknown>' is not assignable to parameter of type 'Response | AsyncIterableOpenAIStreamReturnTypes'.
Additional context
No response
The text was updated successfully, but these errors were encountered:
baptisteArno
changed the title
Mistral: Argument of type 'AsyncGenerator<ChatCompletionResponseChunk, void, unknown>' is not assignable to parameter of type 'Response | AsyncIterableOpenAIStreamReturnTypes'.
Mistral: Argument of type 'AsyncGenerator<ChatCompletionResponseChunk, void, unknown>' is not assignable to parameter of type 'Response | AsyncIterableOpenAIStreamReturnTypes'.Jan 22, 2024
Description
Mistral updated their library with types.
But there is now a type mismatch when piping the stream response to
OpenAIStream
Code example
Additional context
No response
The text was updated successfully, but these errors were encountered: