Gpt example
From UBot Studio
$create gpt template is a function that creates a template for GPT-3 to follow. This template allows you to define a proper structure that GPT-3 can understand and respond to accurately.
Parameters
Prompt: This is the initial text or prompt for the GPT-3 model.
Completion: This is the expected completion of the prompt, demonstrating how GPT-3 should respond.
Return Value
A string containing the template which includes the prompt and completion.
Usage
$create gpt template("Translate the following English sentence to French:", "The cat sat on the mat.")
In this example, the function will format a template for GPT-3. The prompt is "Translate the following English sentence to French:" and the completion is "The cat sat on the mat.". The function then returns this formatted string.