Gpt response

From UBot Studio
Revision as of 16:11, 30 June 2023 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$get gpt response is a function used to get an OpenAI GPT-3 response to a given prompt.

This function allows you to generate AI responses for a specified prompt and an example.

Parameters

Prompt: The lead-in text that you want GPT-3 to respond to.

Example (Optional): An optional parameter providing additional context or instructions for the GPT-3 model.

Returns

A string, which is the generated response from the GPT-3 model for the given prompt and example.

Example

$response = $get gpt response("Translate the following English text to French:", "The cat sat on the mat.")

In this example, we're asking the GPT-3 model to translate the phrase "The cat sat on the mat" from English to French. The generated response is stored in the variable '$response'.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox