Skip to content

Add a "context" box #2

@philohelp

Description

@philohelp

Not a bug, a suggestion. When you make a request to openAi in a content type, sometimes you have to prompt with two different elements: a context and a request. The idea is that you can keep the same context to apply it to different requests.

Like, for instance:
{"context":"Reshape this text to fit the following format: one paragraph for general informations and one for various announcements.", "request":"[The text to reshape]"

Then you do const globalPrompt = ${context}${request}

This is how I implemented it using the plugin:
Capture d’écran 2023-02-26 à 22 12 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions