Class GenerateParameters

java.lang.Object
org.springframework.ai.huggingface.model.GenerateParameters

@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen", date="2024-03-12T15:00:59.645979611-04:00[America/New_York]") public class GenerateParameters extends Object
GenerateParameters
  • Constructor Details

    • GenerateParameters

      public GenerateParameters()
  • Method Details

    • bestOf

      public GenerateParameters bestOf(Integer bestOf)
    • getBestOf

      public Integer getBestOf()
      Get bestOf minimum: 0
      Returns:
      bestOf
    • setBestOf

      public void setBestOf(Integer bestOf)
    • decoderInputDetails

      public GenerateParameters decoderInputDetails(Boolean decoderInputDetails)
    • isDecoderInputDetails

      public Boolean isDecoderInputDetails()
      Get decoderInputDetails
      Returns:
      decoderInputDetails
    • setDecoderInputDetails

      public void setDecoderInputDetails(Boolean decoderInputDetails)
    • details

      public GenerateParameters details(Boolean details)
    • isDetails

      public Boolean isDetails()
      Get details
      Returns:
      details
    • setDetails

      public void setDetails(Boolean details)
    • doSample

      public GenerateParameters doSample(Boolean doSample)
    • isDoSample

      public Boolean isDoSample()
      Get doSample
      Returns:
      doSample
    • setDoSample

      public void setDoSample(Boolean doSample)
    • maxNewTokens

      public GenerateParameters maxNewTokens(Integer maxNewTokens)
    • getMaxNewTokens

      public Integer getMaxNewTokens()
      Get maxNewTokens minimum: 0
      Returns:
      maxNewTokens
    • setMaxNewTokens

      public void setMaxNewTokens(Integer maxNewTokens)
    • repetitionPenalty

      public GenerateParameters repetitionPenalty(Float repetitionPenalty)
    • getRepetitionPenalty

      public Float getRepetitionPenalty()
      Get repetitionPenalty
      Returns:
      repetitionPenalty
    • setRepetitionPenalty

      public void setRepetitionPenalty(Float repetitionPenalty)
    • returnFullText

      public GenerateParameters returnFullText(Boolean returnFullText)
    • isReturnFullText

      public Boolean isReturnFullText()
      Get returnFullText
      Returns:
      returnFullText
    • setReturnFullText

      public void setReturnFullText(Boolean returnFullText)
    • seed

      public GenerateParameters seed(Long seed)
    • getSeed

      public Long getSeed()
      Get seed minimum: 0
      Returns:
      seed
    • setSeed

      public void setSeed(Long seed)
    • stop

      public GenerateParameters stop(List<String> stop)
    • addStopItem

      public GenerateParameters addStopItem(String stopItem)
    • getStop

      public List<String> getStop()
      Get stop
      Returns:
      stop
    • setStop

      public void setStop(List<String> stop)
    • temperature

      public GenerateParameters temperature(Float temperature)
    • getTemperature

      public Float getTemperature()
      Get temperature
      Returns:
      temperature
    • setTemperature

      public void setTemperature(Float temperature)
    • topK

      public GenerateParameters topK(Integer topK)
    • getTopK

      public Integer getTopK()
      Get topK
      Returns:
      topK
    • setTopK

      public void setTopK(Integer topK)
    • topP

      public GenerateParameters topP(Float topP)
    • getTopP

      public Float getTopP()
      Get topP maximum: 1
      Returns:
      topP
    • setTopP

      public void setTopP(Float topP)
    • truncate

      public GenerateParameters truncate(Integer truncate)
    • getTruncate

      public Integer getTruncate()
      Get truncate minimum: 0
      Returns:
      truncate
    • setTruncate

      public void setTruncate(Integer truncate)
    • typicalP

      public GenerateParameters typicalP(Float typicalP)
    • getTypicalP

      public Float getTypicalP()
      Get typicalP maximum: 1
      Returns:
      typicalP
    • setTypicalP

      public void setTypicalP(Float typicalP)
    • watermark

      public GenerateParameters watermark(Boolean watermark)
    • isWatermark

      public Boolean isWatermark()
      Get watermark
      Returns:
      watermark
    • setWatermark

      public void setWatermark(Boolean watermark)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object