Skip to content

Support multiple prompts in CompletionRequest #84

Closed
@Code-Hex

Description

@Code-Hex

Hi 👋 Thanks for developing a great library!

Openai create-prompt documentation says the prompt field is supported encoded as a string, array of strings, array of tokens, or array of token arrays. but this library seems to be supported only encoded as a string.

openai-js implemented type for that like this: https://github.com/threepointone/openai-js/blob/eaade749f2ead531d2ac9a2015184f7b6418a581/api.ts#L475

So I want to ask the question, How can I send a completion request with an array of string?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions