Skip to content

[Feature] Can we support parameter n in OpenAI compatible API? #4073

@Huarong

Description

@Huarong

Motivation

In /v1/completions and /v1/chat/completions endpoint, can we support the parameter n?

So that we can sampling multiple outputs for the same input.

Currently, we can only call the endpoint multiple times which is not efficient.

Related resources

No response

Additional context

No response

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