OpenAIGenerate Data Connector

OpenAIGenerate() → {object}

The OpenAI Generate Data Connector extends the functionality of the OpenAI Data Connector. It provides functionality for generating ideas and copy from prompts.

Returns:
object

The OpenAI Generate Data Connector.

Functions

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'
);

generateDescription(prompt, modelopt) → {string}

Generates a description for a specified prompt.

Parameters:
Name Type Attributes Description
prompt string  

The context to generate the description for.

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.generateDescription('piece of software for syncing browser cookies across multiple devices');

generateIdea(prompt, modelopt) → {string}

Generates an idea for a specified prompt.

Parameters:
Name Type Attributes Description
prompt string  

The context to generate the idea for.

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.generateIdea('keeping the windowless office cool during the summer');

generateSlogan(prompt, modelopt) → {string}

Generates a slogan for a specified prompt.

Parameters:
Name Type Attributes Description
prompt string  

The context to generate the slogan for.

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.generateSlogan('community group opposing the construction of a bypass');

generateTitle(prompt, modelopt) → {string}

Generates a title for a specified prompt.

Parameters:
Name Type Attributes Description
prompt string  

The context to generate the title for.

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.generateTitle('new novel about a war veteran turned private detective');