• Create an OpenAiCompletionRequestDTO object with the given properties.

    Returns

    An OpenAiCompletionRequestDTO object with the given properties.

    Parameters

    • prompt: string

      The prompt to complete.

    • Optional model: string

      The model to use for completion.

    • Optional max_tokens: number

      The maximum number of tokens to generate in the completion.

    • Optional temperature: number

      The temperature to use for sampling.

    • Optional top_p: number

      The top probability to use for sampling.

    • Optional frequency_penalty: number

      The frequency penalty to use for sampling.

    • Optional presence_penalty: number

      The presence penalty to use for sampling.

    Returns OpenAiCompletionRequestDTO

Generated using TypeDoc