|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AIC. - Artificial Intelligence Command |
AIC.AskCompletion |
Top |
MiniRobotLanguage (MRL)
AIC.AskCompletion
Completion API (legacy)
Intention
The AIC.AskCompletion command uses the legacy Completions API (not Chat Completions). This is useful for specific use cases like text completion, code completion, or when working with older GPT-3 models.
Syntax
AIC.AskCompletion|$$Prompt[|$$RetVar]
P1 - $$Prompt - The prompt text for completion
P2 - $$RetVar (optional) - Variable to store the completion
Example
' Set model for completions
AIC.SetModelComp|text-davinci-003
' Complete text
AIC.AskCompletion|The quick brown fox|$$Result
DBP.$$Result
Related Commands
- AIC.Ask - Chat completions (recommended)
- AIC.SetModelComp - Set completion model