Thinking cleanupPlugin

Think Tags · Gateway middleware · v0.1.3

Take a model's <think>…</think> out of its reply's text, or put a Chat reply's reasoning into it.

After installing

  1. “Think Tags” appears on the Plugins page

    Middleware runs in list order; use the arrows to reorder it. Plain middleware does not need Bun.

  2. Set its options

    Click Options on its row and configure it in JSON; the first time, the plugin’s example is filled in. To view or set them from the command line:

    astra plugin options @astragate-community/middleware-think-tags
  3. It works as requests pass

    The Plugins page shows its calls, average time, failures and the latest error. When it fails or times out, the request goes through unchanged.

Where it runs

Requests
Before the privacy guard, seeing the request as the client sent it (in the client’s own protocol).
Replies
Every event of a streamed reply, and the whole of a non-streamed one, pass through it.
Time limits
250 ms for a request or a whole reply, 50 ms for a stream event; past that, it goes through unchanged.
Order
It runs in line with other middleware; the order on the Plugins page is the order they run in.

Before you install

  • Can read and rewrite every request and replyRuns inside the Astra process without network or file system access; every hook has a time limit.
  • A GitHub Release from the community repositoryastragate-community/astra-gate-plugins, Version 0.1.3, 4.0 KB.
  • SHA-256 checked before installingIf the download does not match the hash on record in the market, it is not installed. Install scripts never run (--ignore-scripts).
  • Remove it any time
    astra plugin remove @astragate-community/middleware-think-tags