|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.SetBestOf |
Top |
MiniRobotLanguage (MRL)
AIC.SetBestOf
Set best_of parameter for completions
Intention
The AIC.SetBestOf command sets the best_of parameter for OpenAI completion API calls. This parameter generates multiple completions server-side and returns the best one based on logprobs. Higher values can improve quality but increase token usage.
Syntax
AIC.SetBestOf|$$Value
P1 - $$Value - Number of completions to generate (1-20)
Example
' Set best_of to 3 for higher quality
AIC.SetBestOf|3
' Generate completion with best_of
AIC.AskCompletion|Write a poem about nature|$$Result