forAnalysis method
Configure for analysis tasks with log probabilities
Enables log probabilities for confidence analysis and sets conservative penalties for analytical tasks.
Implementation
OpenAIBuilder forAnalysis({int topLogprobsCount = 5}) {
return frequencyPenalty(0.1)
.presencePenalty(0.1)
.logprobs(true)
.topLogprobs(topLogprobsCount)
.parallelToolCalls(true);
}