Class ChatChoice.Builder

  • Enclosing class:
    ChatChoice

    public static class ChatChoice.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • index

        public ChatChoice.Builder index​(Integer index)
        The index of the chat.
        Parameters:
        index - the value to set
        Returns:
        this builder
      • finishReason

        public ChatChoice.Builder finishReason​(String finishReason)
        The reason why the model stopped generating tokens.

        Stops if the model hits a natural stop point or a provided stop sequence. Returns the length if the tokens reach the specified maximum number of tokens.

        Parameters:
        finishReason - the value to set
        Returns:
        this builder