Gpt example
From UBot Studio
(Difference between revisions)
(Created page with "'''$create template''' is a function used to create a template for GPT-3 to follow. This function allows the creation of a format with specified prompt and completion that GP...") |
Revision as of 16:10, 30 June 2023
$create template is a function used to create a template for GPT-3 to follow.
This function allows the creation of a format with specified prompt and completion that GPT-3 will use to generate its responses.
Parameters
Prompt: The lead-in text for the GPT-3 model.
Completion: The text that completes the prompt.
Returns
A string, formatted as a template using the given prompt and completion.
Example
$template = $create template("Translate the following English text to French: ", "The cat sat on the mat.")
In this example, the function creates a new template for GPT-3 to translate a given sentence from English to French. The created template is stored in the variable '$template'.