Use :ai:
to trigger ai flows.
In your settings you got this kind of item:
{
"title": "ChatGPT - 4", // You can change that as you want
"type": "openai", // openai | gemini | ollama | mistral
"model": "gpt-4", // depending on the type refer to official ai doc
"token": "", // token if needed (openai | gemini | mistral)
"prompt": "{{content}}", // you can customize that as you wish {{content}} is the content of the Launcher
"output": "---\nAI:\n${response}\n\n---\n" // you can customize how the answer will be formatted before be inserted in the text editor
}
Feel free to customize them, for example change the output
"output": "The GPT 4 AI answer with : \n${response}\n"
Feel free to customize them, for example change the prompt like
"prompt": "Answer to this prompt only in French: '{{content}}'",
You can also add context
"prompt": "Answer to this prompt only in French: 'Question : {{content}}\n Article content: {{source.text}}'",
Ask me if you want more
- [ ] Add shortcut maybe
Check the doc here https://github.com/castroCrea/moon/blob/main/doc/Plugin_Development.md
Check also the tutorial video https://youtu.be/dvoalnWBwv4 📹
yarn
yarn build
yarn watch
First remove current git origin
git remote remove origin
Add you repo origin and change also credential iin package.json
Then
yarn pub