generate(what, prompt, modelopt) → {string}
Generates something based on the specified prompt. This could be a name, a description, a poem or an idea.
Parameters:
Name |
Type |
Attributes |
Description |
what |
string |
|
The thing to generate.
|
prompt |
string |
|
A description or some context to generate the thing for. This might be a description of a product or a problem to be solved.
|
model |
string |
<optional> |
The ID of the model to use. Uses the default if not specified.
|
Returns:
string
The generated result.
Example:
connectors.verjio.openai.generate(
'name',
'new fluffy puffin childrens toy to be sold in a supermarket'
);