logseq-plugin-ai-assistant icon indicating copy to clipboard operation
logseq-plugin-ai-assistant copied to clipboard

Feature Request: Configurable AIGC Tag for Specified Prompts

Open ehehela opened this issue 1 year ago • 2 comments

The AIGC tag can be configured to be added for specified prompts instead of for all prompts.

For example, one can use the following settings:

{
  "apiKey": "<your-api-key>",
  "model": "gpt-3.5-turbo",
  "addtag": ["Summarize", "Generate Ideas", "Explain This"], // for built in prompts
  "customPrompts": {
    "enable": true,
    "prompts": [
      {
        "name": "Markdown Table",
        "prompt": "Please generate a {{text}} Markdown table",
        "output": "replace",
        "addtag": false // for custom prompts
      }
    ]
  },
  "disabled": false
}

ehehela avatar Jan 08 '25 22:01 ehehela

A more general idea — cancel the outside addtag key, only use the inside addtag key for each custom prompt, and — consider changing the inside addtag key to keys named top-append and end-append for each prompt. When top-append and end-append have values, such as a tag "#AI-Generated" or multiple tags "#AI-Generated #Summarize #needdoublecheck", append this content to the top or the end of the LLM response result; else if it’s empty, just leave it.

Gitbreast avatar Jan 20 '25 05:01 Gitbreast

A more general idea — cancel the outside addtag key, only use the inside addtag key for each custom prompt, and — consider changing the inside addtag key to keys named top-append and end-append for each prompt. When top-append and end-append have values, such as a tag "#AI-Generated" or multiple tags "#AI-Generated #Summarize #needdoublecheck", append this content to the top or the end of the LLM response result; else if it’s empty, just leave it.

Btw, attach a use case here, ask the LLM to complete a Markdown Table (from typed or OCR text). In this case, I need to delete the tag manually to make the table work. Image

Gitbreast avatar Jan 20 '25 06:01 Gitbreast