AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - Set Parameters > Use the STOP-Parameter >

AIC. - Artificial Intelligence Command

AIC.Set Stop

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Set Stop

Will set an STOP-Condition for the Open AI - Services, will not escape Strings

 

 

Intention

 

The AIC.Set Stop command is a powerful tool that allows you to control when the AI model should stop generating further text.

This command is particularly useful when you want the model to generate text up to a certain point or condition.

 

Usage:

 

AIC.Set Stop|<stop_sequence>

 

The <stop_sequence> can be any string of characters. It could be a single character, a word, a sentence, or even special characters like newline (\n) or tab (\t).

For example, if you want the model to stop generating text after it produces a newline character (which typically signifies the end of a paragraph), you would use the command like this:

 

AIC.Set Stop|\\n

 

As you see, we use "\\" instead of "\ this is done because the AIC.Set Stop will not automatically "escape" its Content for JSON Use.

So we need to do that manually.

 

The AIC.Set Stop command is a powerful and flexible tool for controlling the behavior of the AI model.

By understanding and using this command effectively, you can get the most out of your interactions with the model.

 

If you want to use special characters in the <stop_sequence>, you need to escape them.

The command will not automatically handle the escaping for you.

For example, to use a newline character, you would simply write \\n, not \n.

 

For more Details see "Using the STOP-Flag".

 

 

Syntax

 

 

AIC.Set Stop[|P1]

 

 

Parameter Explanation

 

P1 - (optional) Variable or String to Set the STOP-Parameter. If omitted the STOP-Parameter will be cleared, just like "AIC.Clear Stop"

 

 

Example

 

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

'

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

 

 

 

 

 

Remarks

 

The AIC.Set Stop command is a tool to help you control the output of the model. The best way to use it can depend on your specific use case.

If you want to use multiple stop sequences, you can use the AIC.Add to Stop command to add more sequences after using the AIC.Set Stop command.

If you want to clear all stop sequences, you can use the AIC.Clear command.

 

 

Limitations:

 

-

 

 

See also: