Class PromptTemplateConfig.CompletionConfig
- java.lang.Object
-
- com.microsoft.semantickernel.semanticfunctions.PromptTemplateConfig.CompletionConfig
-
- Enclosing class:
- PromptTemplateConfig
public static class PromptTemplateConfig.CompletionConfig extends Object
Completion configuration parameters
-
-
Field Summary
Fields Modifier and Type Field Description List<String>stopSequences
-
Constructor Summary
Constructors Constructor Description CompletionConfig()CompletionConfig(double temperature, double topP, double presencePenalty, double frequencyPenalty, int maxTokens)CompletionConfig(double temperature, double topP, double presencePenalty, double frequencyPenalty, int maxTokens, int bestOf, String user, List<String> stopSequences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBestOf()The maximum number of completions to generate for each prompt.doublegetFrequencyPenalty()intgetMaxTokens()doublegetPresencePenalty()doublegetTemperature()doublegetTopP()StringgetUser()A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse
-
-
-
Method Detail
-
getTemperature
public double getTemperature()
-
getTopP
public double getTopP()
-
getPresencePenalty
public double getPresencePenalty()
-
getFrequencyPenalty
public double getFrequencyPenalty()
-
getMaxTokens
public int getMaxTokens()
-
getBestOf
public int getBestOf()
The maximum number of completions to generate for each prompt. This is used by the CompletionService to generate multiple completions for a single prompt.
-
getUser
public String getUser()
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse
-
-