Linux 软件免费装
Banner图

Alpaca Bot

开发者 carmelosantana
更新时间 2026年9月30日 20:45
捐献地址: 去捐款
PHP版本: 8.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

ai chatbot agent large language model ollama

下载

0.4.17 0.6.1 0.4.16 0.5.0 0.6.0 0.6.2 0.6.3

详情介绍:

Alpaca Bot is a chat screen inside WordPress admin, talking to a model you host. Conversations stay on your site, in your own database, and only their author can open them. It runs against Ollama out of the box, or any OpenAI-compatible endpoint. Features Requirements Setup
  1. Install Ollama on your localhost or server.
  2. In your WordPress admin, open Alpaca Bot > Settings and, on the Provider tab, enter the endpoint's base URL. For Ollama it ends in /v1: http://localhost:11434/v1.
  3. Click Save Changes. The Models tab then lists what the provider serves; pick a default.
⭐️ Become a Patreon and support Alpaca Bot development. ⭐️ Usage Read Usage in the README on GitHub. Shortcodes Read Shortcodes in the README on GitHub. Support Questions and bug reports go to the WordPress.org support forum. Say which plugin, WordPress and PHP versions you run. For premium support, book a call: video calls, help setting up your Ollama instance or provider, troubleshooting, and onsite setup assistance. If the plugin has been useful, star Alpaca Bot on GitHub; a star helps other site owners find it. Made Possible By

安装:

  1. Check the site runs PHP 8.4 or newer and WordPress 6.9 or newer. Alpaca Bot loads nothing below PHP 8.4.
  2. Have a model server ready: Ollama on your own host, or any OpenAI-compatible endpoint. On WordPress 7.0 and later you can instead use a provider plugin through core's AI client.
  3. Install the plugin from your admin, or upload the zip under Plugins > Add New > Upload Plugin, and activate it.
  4. Open Alpaca Bot > Settings. On the Provider tab enter the endpoint's base URL -- for Ollama it ends in /v1, as in http://localhost:11434/v1 -- and save.
  5. The Models tab now lists what the provider serves. Pick a default model.
  6. Read the Tools part of the description before you leave the Tools tab as it comes, and before you open the chat to a role.

屏幕截图:

  • The chat drawer, open over Posts. It opens on most admin screens, and the chip above the composer tells the model which screen you are on; a chip you take off is not sent.
  • A turn that used the draft_post tool. The reply confirms the draft, and the receipt ends with the number of tools the turn ran.
  • Settings > Access: who may use the chat, each tool, and the settings over REST, one capability per row. The launcher at the bottom right opens the drawer.

升级注意事项:

0.6.3 The monthly token cap is re-checked between a tool turn's model calls. A turn it stops keeps its reply so far and answers 402 saying so. 0.6.2 WP-CLI writes to alpaca_bot_settings now pass the settings checks, and a partial update keeps the keys it leaves out: use wp option patch delete to reset one. 0.6.1 Security fixes. Changing the provider address now clears its API key unless you re-enter it, and the key moves to its own non-autoloaded option. Abilities can no longer reach unticked abilities. 0.6.0 Each tool now needs its own Settings › Access row besides chat: a role given chat in code gets no tool until its row admits it. The alpaca_bot/capability/settings/schema filter is retired; the schema route asks …/settings/read. Deleting the plugin now deletes its data. 0.5.0 A rewrite needing PHP 8.4 and WordPress 6.9; back up first. Settings and conversations migrate; your API username and password do not, so re-enter the key on the Provider tab or chat fails. [alpacabot] now takes a prompt attribute and never generates for visitors; [alpacabot_agent] is deprecated.

常见问题:

Do I need my own AI server?

Yes. Alpaca Bot does not ship a model and sends nothing to a service of ours. Point it at an Ollama instance, or at any OpenAI-compatible endpoint, on the Provider tab. On WordPress 7.0 and later there is a second option: WordPress AI provider routes every turn through the AI client built into core, to whichever AI provider plugin the site has configured under Settings › Connectors. That path does not stream, because the WordPress client does not.

What leaves my site?

Whatever you type, and the recent messages of the conversation, go to the endpoint you configured, and nothing else. Conversations and usage receipts are rows in your own database. Turn conversation storage off entirely on the Privacy tab; a receipt is still written for every reply, because that is what the monthly caps count, and it never holds message text.

Who can use it?

The chat screen is open to anyone who can edit posts, which includes Contributors. Settings › Access changes it, and the alpaca_bot/admin/menu_capability filter overrides that in code. The Settings screen is administrators only, whatever those rows say. Read Tools, and what they let the model reach, under Usage, before you open the chat to a role: a role admitted to chat gets no tools until their rows admit them, and web_fetch is the row to think about first.

How do I stop it running up a bill?

Three brakes, and they are independent. Limits sets a monthly token cap for the whole site and another per user, counted from the receipts and enforced on the server. A shared per-minute rate limit (thirty requests a user, moved by the alpaca_bot/rate_limit filter) covers the chat screen, the REST routes, the abilities and the shortcodes together. And Tools decides what the model may do besides answer. Shortcode answers are cached, and never generated for a visitor or for the REST API.

I upgraded from 0.4. Where did my settings go?

Into one option, moved automatically on the first request after the upgrade. Two things do not survive the move: 0.4's API username and password were sent as HTTP Basic and 0.5 sends a Bearer token instead, so the Provider tab starts with an empty API key for you to fill in. Your 0.4 conversations are kept, and become private to their author, which is what 0.5 enforces everywhere.

The model answers with the text of a tool call instead of an answer.

Some small models advertise tool support and then write the call out as prose. On the Models tab, set that model's Tools override to off; it beats whatever the provider claims. A model too small to use tools well is usually too small for the tools to be worth it. There is a price as well as a symptom. web_fetch, summarize and draft_post are on by default, and their schemas go with every turn they are offered on: measured on this plugin with those on, about 790 extra prompt tokens each time, against 36 with tools off. With the abilities tool on, each ability you tick adds its own schema to the turns it is offered on. On a large model that is noise in the bill; on a small one it is most of the prompt, which is why the answer degrades. Turning off the tools you do not use, under Tools, costs nothing and is worth doing before you tune anything else.

更新日志:

Releases before 0.5.0 are on the releases page. 0.6.3 The monthly token cap now holds inside a tool turn. Changed Fixed 0.6.2 WP-CLI and settings-storage fixes for 0.6.1. Breaking is what an upgrading site may have to act on. Breaking Fixed 0.6.1 Security and reliability fixes for 0.6.0. Breaking is what an upgrading site may have to act on. Breaking Fixed Changed 0.6.0 The chat on most admin screens and in the block editor, a capability for each part of the plugin, and tools from the site's WordPress abilities and from remote MCP servers. Breaking is what an upgrading site, or a client of the REST API, may have to act on. Breaking Added Fixed 0.5.0 A ground-up rewrite. The 0.4 code is gone rather than refactored, so the list below is what an upgrading site notices, not a summary of every commit. Breaking Added