AI fallback chain, cache and usage

AI Updated: App version: 0.2.0

The fallback chain is the ordered list of AI providers PlexusTyping tries for each text, up to five. If one fails or takes too long, it moves to the next; if all fail, the text comes from the cache or the local corpus, with a notice. So an AI failure never leaves you without a text or repeats one.

Building the chain

In Settings → AI → “Fallback chain”:

  1. Add providers with “Add provider”; each provider can appear only once.
  2. Order them with the “Move up” and “Move down” arrows; they are tried from top to bottom.
  3. Remove one with “Remove”.
  4. Check each one with “Test connection”.

How to configure each provider is in providers and keys.

What happens with each request

Situation What the app does
Slow request Each provider has 30 seconds; the whole chain, 60
A text that fails validation One retry with the same provider and then the next one
All fail or there is no key A cached AI text that has never been shown, or a new text from the local corpus
ChatGPT plan error The chain stops, without using your keys (sign in with ChatGPT)

A valid text must fit the length, use only characters your layout can type and contain no Markdown. When a text is rejected, its retry asks for any text in the language, without targets. Each failed attempt is written to the app’s error output, never with the key.

Notices and text source

If the text does not come from the AI, a short note above it explains why. The source is always shown:

  • “AI-generated · Claude · …” (provider and model)
  • “Cached text”
  • “Local corpus”

The usage table

The “AI usage” table counts, per provider, the calls and the tokens of today and in total (“Calls”, “Tokens today”, “Total tokens”). “Refresh” reloads the data. It helps you watch what you spend with your keys. It is stored in the local database, like the cache of generated texts.

No waiting

The next text is requested in the background as soon as you start typing the current one, so it is usually ready when you finish. More in how it picks the texts.