
外掛標籤
開發者團隊
原文外掛簡介
Baghwa adds an AI button next to eligible text fields and text editors. It opens a prompt popup, generates content from your configured AI provider, and inserts text into the selected field only.
Features:
Works in wp-admin and front-end visual editors (including Elementor, Divi, Gutenberg, and other editors that use input, textarea, contenteditable, and same-origin iframe fields).
Excludes email and password fields.
Prompt options: language, character count, and emotion.
If field already has text, Baghwa pre-fills prompt with:
line 1: enhance this writing:
line 2: character count
line 3+: current field content
Auto language detection for existing text.
Retry logic for temporary provider errors, with retry counter and cooldown button.
Multiple provider support:
OpenRouter
OpenAI
Anthropic
Google Gemini
Qwen (DashScope)
Ollama (local)
LM Studio (local)
Custom OpenAI-compatible endpoint
Settings UI supports model refresh and model search.
External services
Baghwa sends data to the selected AI provider only when an authorized user clicks Generate Text or when an admin clicks Refresh Models on the settings page.
Data sent during generation:
user prompt text
selected language, emotion, and character target
selected model id
provider authentication key configured by the admin
Data sent during model refresh:
provider authentication key (if required by that provider)
selected region or base URL when applicable
OpenRouter requests also include your site URL and site title headers (HTTP-Referer and X-Title) because OpenRouter supports app identification.
Possible provider endpoints:
OpenRouter API: https://openrouter.ai/api/v1
OpenAI API: https://api.openai.com/v1
Anthropic API: https://api.anthropic.com/v1
Google Gemini API: https://generativelanguage.googleapis.com/v1beta
Qwen DashScope API: https://dashscope-intl.aliyuncs.com/compatible-mode/v1
LM Studio local endpoint (example): http://127.0.0.1:1234/v1
Ollama local endpoint (example): http://127.0.0.1:11434
Custom endpoint defined by site administrator
Provider terms and privacy:
OpenRouter: https://openrouter.ai/terms | https://openrouter.ai/privacy
OpenAI: https://openai.com/policies/terms-of-use | https://openai.com/policies/privacy-policy
Anthropic: https://www.anthropic.com/legal/consumer-terms | https://www.anthropic.com/legal/privacy
Google Gemini (Google): https://policies.google.com/terms | https://policies.google.com/privacy
Alibaba Cloud DashScope (Qwen): https://www.alibabacloud.com/help/en/legal/latest/alibaba-cloud-international-website-product-terms-of-service | https://www.alibabacloud.com/help/en/legal/latest/alibaba-cloud-international-website-privacy-policy
For local providers (Ollama/LM Studio), data stays within your infrastructure unless your local setup forwards requests externally.
For custom providers, terms and privacy links depend on the endpoint chosen by the site administrator and must be reviewed by the site owner before use.
