Function Description

AI prompt templates are used to quickly build similar types of AI requests.

Execution Properties

Plugin Execution Phase: Default Phase
Plugin Execution Priority: 500

Configuration Description

NameData TypeRequiredDefault ValueDescription
templatesarray of objectRequired-Template settings

Template object configuration description:

NameData TypeRequiredDefault ValueDescription
namestringRequired-Template name
template.modelstringRequired-Model name
template.messagesarray of objectRequired-Input for large model

Message object configuration description:

NameData TypeRequiredDefault ValueDescription
rolestringRequired-Role
contentstringRequired-Message

Configuration example:

  1. templates:
  2. - name: developer-chat
  3. template:
  4. model: gpt-3.5-turbo
  5. messages:
  6. - role: system
  7. content: You are a {{program}} expert, in {{language}} programming language.”
  8. - role: user
  9. content: Write me a {{program}} program.”

Example request body using the above configuration:

  1. {
  2. template”: developer-chat”,
  3. properties”: {
  4. program”: quick sort”,
  5. language”: python
  6. }
  7. }