Create prompt
From UBot Studio
$create prompt is a function used to format a prompt and an example for use with GPT-3.
It accepts two parameters, "text" and "example", to form a formatted string used as a prompt for GPT-3.
Parameters
Text: The main prompt text that you want the model to respond to.
Example: The example text that provides further instruction or context to the model.
Returns
A string, formatted using the input text and example suitable for use as a prompt with GPT-3.
Example
$prompt = $create prompt("Translate the following English text to French:", "The cat sat on the mat.")
In this example, the function creates a new prompt for GPT-3 to translate the phrase "The cat sat on the mat" from English to French. The created prompt is stored in the variable '$prompt'.