FutureProg functions

gptrequest

OpenAIcomputer function, computer program, standard futureprog

Overload 1

gptrequest overload 1

Boolean gptrequest(Number Thread, Text Message, Character User, Number MaximumHistory, Text Function)
Available in
  • computer function
  • computer program
  • standard futureprog
This function schedules a call to GPT with thread history. Returns true if queued and calls the specified prog only when a successful response arrives.
ParameterTypeDescription
Thread Number The GPTThread to Call
Message Text The message to send to GPT
User Character The user whose history is being invoked
MaximumHistory Number The maximum history entries
Function Text A Prog to call with the successful response

Overload 2

gptrequest overload 2

Boolean gptrequest(Text Thread, Text Message, Character User, Number MaximumHistory, Text Function)
Available in
  • computer function
  • computer program
  • standard futureprog
This function schedules a call to GPT with thread history. Returns true if queued and calls the specified prog only when a successful response arrives.
ParameterTypeDescription
Thread Text The GPTThread to Call
Message Text The message to send to GPT
User Character The user whose history is being invoked
MaximumHistory Number The maximum history entries
Function Text A Prog to call with the successful response