OpenAgents needs this plugin! This OpenAgents plugin leverages the PromptPerfect API to enhance and optimize prompts for various models like ChatGPT, GPT-4, and more.

Getting Started

  1. Clone the repository:
git clone https://github.com/BrianisNices/Prompt-Perfect-Plugin.git cd Prompt-Perfect-Plugin
  1. Install dependencies:
go get github.com/extism/go-pdk
  1. Set your API key in the main.go file:
var API_KEY string = "YOUR_API_KEY"
  1. Compile the plugin:
tinygo build -o prompt.wasm -target wasi main.go

Usage

Once you have the plugin compiled, you can use the Extism CLI to run it. Here's how:
extism call plugin.wasm run --input '{"prompt": "YOUR_PROMPT", "targetModel": "YOUR_MODEL"}' --wasi --allow-host 'api.promptperfect.jina.ai'
Supported Model : 'chatgpt' | 'gpt-4' | 'stablelm-tuned-alpha-7b' | 'claude' | 'cogenerate' | 'text-davinci-003' | 'dalle' | 'sd' | 'midjourney' | 'kandinsky' | 'lexica'

Example

Here's an example of how to use the plugin:
extism call prompt.wasm run --input '{"prompt": "explain money management", "targetModel": "chatgpt"}' --wasi --allow-host 'api.promptperfect.jina.ai'
Output:
Please provide a comprehensive explanation of money management, covering topics such as budgeting, saving, investing, and debt management. Your response should aim to educate and inform the reader about the principles and strategies involved in effectively managing personal finances. Please ensure that your explanation is clear, concise, and accessible to individuals with varying levels of financial knowledge, and feel free to include practical examples or tips to illustrate your points.
This plugin is designed to help you get the most out of your prompts by making them more effective and targeted for your desired model. I hope you find it useful!
this territory is moderated
I tried it, it’s awesome, nice one
reply
This is great, thank you Brian. Happy to award the bounty - and sorry for the mixup with the dupes. Please DM me an onchain address to @OpenAgentsInc on X or email to chris@openagents.com
reply
Once again thank you, Chris! I've sent you my wallet address to your email.
reply