Skip to content

audio.speech.create Typescript types are incorrect when stream: true #1348

Closed
@omonk

Description

@omonk

Looking at the type here, when passing stream true to the options the response type is still Response

create(body: SpeechCreateParams, options?: Core.RequestOptions): Core.APIPromise<Response> {

Image

Comparing this to the chat completions with the stream: true option:

create(
body: ChatCompletionCreateParamsStreaming,
options?: Core.RequestOptions,
): APIPromise<Stream<ChatCompletionChunk>>;

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions