## v1.1.023 — 2026-05-18
- feature: **Cloud AI mode** — the AI Settings panel gains a new top-level switch between **Local LLM** and **Cloud API**. In Cloud mode the pet talks through a remote AI service over the internet, so the conversation runs without keeping a local model loaded on your GPU or in memory. This release ships with three active provider slots:
- **Google Gemini** — connects to the official Google AI service (you supply your own key from Google AI Studio; a generous free tier is available).
- **Pollinations** — community-run anonymous endpoint, **no API key required**, free to use.
- **Custom (OpenAI-compatible)** — point at any endpoint that speaks the OpenAI Chat Completions protocol. Works with self-hosted backends like Ollama, LM Studio, vLLM, llama.cpp server, or private OpenAI-compatible proxies.
Additional commercial providers (OpenAI, Claude, DeepSeek, OpenRouter, xAI, Mistral, Qwen, Moonshot, and ~20 others) are visible on the grid but currently greyed out with a small "Soon" badge — they're queued for activation in upcoming releases once each one has finished its compatibility pass.
- feature: configuration form per provider — choose a model (either type the id, or click 🔄 to pull the live catalog from the provider), enter your API key (stored locally in encrypted form, never uploaded), and optionally override the base URL for self-hosted or proxy setups. Common controls include temperature and reply-length cap; a collapsible **Sampling parameters** section exposes advanced knobs — top-p, top-k, frequency / presence / repetition penalty, and seed — for users who want them. **The Sampling parameters section now starts collapsed by default and remembers its open / closed state across restarts.**
- feature: **Thinking mode** control — a three-chip group (**Off** / **Auto** / **Deep**) on the cloud panel governs how much internal reasoning the model performs. **Off is the new default** — most chat use cases don't need the extra reasoning step, and turning it off prevents reasoning-capable models (like Gemini's 2.5 line) from spending the whole reply budget on internal thinking and returning only a stub. When you do switch to **Auto** or **Deep**, a separate **Thinking budget** slider appears, fully decoupled from the reply-length cap: the reply-length slider still controls how long the visible reply can be, and the new budget slider independently controls how much thinking the model is allowed. Models that don't support reasoning simply ignore the setting.
- feature: **Test connection** button (🧪) next to the API key — sends a one-token ping to the configured provider/model and reports back ✓ Connected or ✗ Failed with a readable reason. The test exchange is not added to your chat history.
- feature: **Token usage** dashboard — input / output / cached / reasoning token counts per provider, broken down by this session, today, and all-time, with a 🗑 reset. Counts are kept locally on your machine and never uploaded; for billing and remaining balance the panel includes a 📊 link that opens the provider's own dashboard. A small ⚠ rate-limit hint surfaces when the provider signals that your request bucket is running low.
- feature: **AI master switch** reworked into a true global on/off. Clicking the ✨ button in the sidebar now fully releases the active mode's resources when turned off (local model unloads from GPU; cloud connections close), turns TTS off as well, dims the AI sub-panels, and shows a banner explaining that settings below won't take effect until AI is enabled. The chat input placeholder updates to "AI is off — click ✨ in the sidebar to enable" so it's obvious why messages aren't being sent. Turning it back on restores whichever mode (Local or Cloud) was previously selected with no restart needed.
- feature: **Automatic memory extraction in Cloud mode** — the pet's long-term memory system, which turns past conversations into facts the model can recall in later replies, previously ran only in Local mode. With Cloud mode now driving conversations, a periodic pass runs every N turns and uses your configured cloud provider to extract new memories from recent dialogue. **N is user-controlled** (new "Auto-extract memory every N turns" field in the Sampling parameters area, default 10, range 0–50, **0 disables auto-extraction**). The pass runs in the background and does not block your next message — the only visible effect is the same memory-extraction progress hint already used by Local mode. Memory extraction also runs automatically when you switch characters, swap modes, or turn the AI master switch off, so no conversation is silently lost. A small token cost on the active provider is the expected tradeoff.
- improvement: **"AI is off" banner + chat input placeholder** — together with the master-switch rework, the chat window now visibly indicates when AI is disabled instead of letting messages pile up in a queue that won't be answered.
- improvement: **launching with Cloud mode as the saved choice no longer initializes a local model**. Earlier versions could surface a "No GPU backend available" failure modal at startup on machines without local-LLM-capable hardware, even though Cloud mode doesn't need a local model. Startup now correctly skips local-LLM bring-up whenever the saved mode is Cloud or the AI master switch is off — only the components the active mode actually needs get loaded.
- improvement: **rapid back-to-back chat turns no longer trip up self-hosted backends** (Ollama / LM Studio / vLLM / llama.cpp server, etc.) configured through the Custom provider. Most local single-GPU backends can only run one generation at a time; rapid follow-up messages, or quick successive sentences from the TTS pipeline, previously could cause the backend to return a 500 on trailing requests. The app now queues requests to any \`localhost\` / \`127.0.0.1\` base URL in arrival order, so each chat turn lands cleanly. Remote cloud providers are unaffected.
- improvement: **clearer error messages when the AI returns nothing**. When the provider blocks your message (safety filter), runs out of token budget during internal reasoning, or returns a fragment too short to be useful, the pet now shows a precise notice — for example "Model hit MAX_TOKENS during thinking, raise the reply length or set thinking to Off", or "Prompt blocked by Gemini safety filter — try rephrasing or switch model" — instead of an empty reply or a generic "…". The notices fade out after a few seconds and are not saved into your chat history.
- improvement: **network reliability under flaky VPN / proxy conditions**. Cloud requests now automatically retry on transient connection failures (connection reset / dropped / timed out / handshake hiccup) with a short exponential back-off, while business errors (rate limit, auth failure, model not found) are never retried so quota doesn't get burned twice. Connection paths were also reworked to be more compatible with HTTP proxies, eliminating a class of "connection closed" failures users on VPN setups were seeing on first connection.
- improvement: **Pollinations works again**. Pollinations recently tightened its TLS handshake, which a small number of users reported was causing test-connection failures and empty model lists. The app now uses a network path compatible with the new handshake, and the API-key field shows an inline hint reminding users that no API key is needed for this provider.
- improvement: **full localization coverage of the new cloud panel** across all 30 supported languages — Arabic, Bulgarian, Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hungarian, Indonesian, Italian, Japanese, Korean, Latin-American Spanish, Norwegian Bokmål, Polish, Portuguese (Brazil and Portugal), Romanian, Russian, Simplified Chinese, Spanish, Swedish, Thai, Traditional Chinese, Turkish, Ukrainian, and Vietnamese. Around a hundred new strings — provider grid labels, every configuration field and hint, the thinking-mode chips, the thinking-budget slider, error messages, the AI-off banner, the chat input placeholder, the token-usage panel, the "Soon" badge on upcoming providers, and the API-key-optional notice — all have native-quality translations.
