Set Model Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > Set_Model Commands >

Set Model Commands

AIC.Set_Model

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Set_Model
Choose a Model for the AI.

 

clip0720

The "Completion" Models try to calculate the Possibility of several Tokens/Words to complete a given Text.

 

 

Intention

 

The AIC.Set_Model command is used for specifying the Model you want to use for whatever AI conversation.

Using this command you must take care to write the name of the model as it should be, else you will run into errors and not get the expected results.

 
The syntax of this command is
AIC.Set_Model|<Modelname>, where <Modelname> is the name of the OpenAI model you want to use.

The default model set by this command is "gpt-3.5-turbo".

 

The AIC.Set_Model command will select an Model which can then be used with multiple AI-Commands.

You have to specify the Model-Name, you can not specify a number.

If you leave the Parameter P1 empty, the Commands will set the Model-Variable to "gpt-3.5-turbo".

 

  Please choose a Model that is supported by the AIC.Ask that you want to use.

Model ID

Description

Token Limit (as of Sep 2021)

Cost per 1K tokens (as of July 2023)

text-davinci-001

A version of the Davinci model that can understand and generate text in various languages, including German. Likely used for complex tasks and detailed responses.

4096

$0.0200

text-davinci-002

Similar to text-davinci-001, more advanced. Generates text,

4096

$0.0200

text-davinci-003

Most advanced version of the Davinci model. Overall, the best Model for the Completion Endpoint.

4096

$0.0200

text-babbage-003

A version of the Babbage model, which is likely less powerful than Davinci but still very capable. Used for generating text.

4096

$0.0005

davinci

The base Davinci model, known for its ability to generate high-quality text and perform complex tasks.

4096

$0.0200

text-curie-001

A version of the Curie model, which is smaller than Davinci and is generally used for tasks that don't require as much depth. Capable of generating text in various languages.

2048

$0.0020

text-babbage-001

Similar to text-babbage-003, but possibly a different version or configuration of the Babbage model. Used for generating text.

4096

$0.0005

text-ada-001

A version of the Ada model, which is smaller than Curie and is generally used for simpler tasks. Capable of generating text.

2048

$0.0004

babbage

The base Babbage model, smaller than Davinci but still powerful and capable of generating text.

4096

$0.0005

text-similarity-davinci-001

A specialized version of the Davinci model used for text similarity analysis. It can understand and compare text to gauge how similar they are.

4096

$0.0200

babbage-code-search-code

A specialized version of the Babbage model, likely used for searching through code or understanding programming-related queries.

4096

$0.0005

text-ada-001

Similar to Case 8, a version of the Ada model used for generating text.

2048

$0.0004

Syntax

 

 

AIC.Set Model|P1

AIC.SMO|P1

 

 

Parameter Explanation

P1 -  Model-Name, can be a number (see Table above) or directly the name of the model to use.

 

 

Example

 

'*****************************************************

' EXAMPLE 1: AIC.-Commands

'*****************************************************

' Set OpenAI API-Key from the saved File

AIC.SetKey|File

 

' Set Model

AIC.SetModel|gpt-3.5-turbo

 

' Set Model-Temperature

AIC.Set_Temperature|0

 

' Set Max-Tokens (Possible lenght of answer, depending on the Model up to 2000 Tokens which is about ~6000 characters)

' The more Tokens you use the more you need to pay.

AIC.SetMax_Token|25

 

' Ask Question and receive answer to $$RET

AIC.Ask_Completion|What is a "Windows Button"?|$$RET

MBX.$$RET

 

:enx

ENR.

 

clip0589

Note that the Answer-Text is cut off at the end because i have specified a maximum of 25 Tokens in the Script which is to low for the complete answer.

 

 

Remarks

-

 

Limitations:

-

 

 

See also:

 

  Set_Key