<< Click to Display Table of Contents >> Navigation: 3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command > AI - Internet Commands > AI - Internet Commands |
MiniRobotLanguage (MRL)
AIC.Set Proxy Server
Set the Parameters like IP, Login and Password for use of a the Proxy Server with AI-Commands
Intention
The AIC.Set Proxy Server command (abbreviated as AIC.SPX) is used to set the parameters for the Proxy Server such as:
IP address, login credentials, and password for use with all Smart Package Robot AI-Commands.
Note that all AI commands use http-Connections therefore select the Proxy-Server for such connections.
This command should be used in conjunction with the "AIC.Set Proxy ON" command, which will turn the Proxy Serve ON or OFF.
Please be careful when using this command together with the GPT4All Commands as they will also try to use the Proxy Server if it is turned on!
This was done due to the fact that GPT4All can also be used in Networks using the AIC.Change GPT4all URL - Command.
Using the the "AIC.Set Proxy ON" Command you can switch On and Off the Proxy Server quickly at any time,
the Parameters from the AIC.Set Proxy Server Command will be stored internally until the Script ends.
AIC.Set Proxy Server|1
AIC.Set Proxy Server|192.168.0.1|Login|Password
This example enables the Use of the Proxy-Server with the given Parameters.
Syntax
AIC.Set Proxy Server|P1[|P2][|P3]
AIC.SPX|P1[|P2][|P3]
Parameter Explanation
P1 - <IP-Adress of the Proxy Server>: The parameter P1 should contain the address of the proxy Server.
P2 - opt. <Login>: The parameter P2 contains your Login to the Proxy-Server. If there is no Login & Password, just omit P2 and P3
P3 - opt. <Password>: The parameter P3 contains your Password for use with the Proxy-Server. If there is no Login & Password, just omit P2 and P3
Example
'*****************************************************
' EXAMPLE 1: AIC.-Commands
'*****************************************************
' Set OpenAI API-Key from the saved File
AIC.SetKey|File
' This will switch on the Proxy Server for all following AI-Operations
' You can easily switch off the Proxy Server at any time, the Parameters
' will be stored internally until the Script ends
AIC.Set Proxy Server|192.168.0.1|LoginMe|MyPassword
AIC.SetProx ON|1
' Set Model
AIC.SetModel_Completion|4
' 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
' We will create 4 alternative answers
AIC.Set Proxy Server|4
' Ask Question and receive answer to $$RET
AIC.Ask_Completion|What is a "Windows Button"?|$$RET
MBX.$$RET
:enx
ENR.
Remarks
Please be careful when using this command together with the GPT4All Commands as they will also try to use the Proxy Server if it is turned on!
This was done due to the fact that GPT4All can also be used in Networks using the AIC.Change GPT4all URL - Command.
If GPT4All runs local it is recommended to turn the Proxy-Server off.
Limitations:
-
See also:
•