Skip to content

v1.2.0b1: prompt caching and transcription language

Pre-release
Pre-release

Choose a tag to compare

@Elijaht-dev Elijaht-dev released this 15 Nov 13:32

Experimental prerelease for testing the changes planned for 1.2.0. This is not a stable release.

What's included

  • Automatic Conversation prompt caching: a stable key per account, Conversation entity and model lets Mistral reuse matching prompt prefixes across conversations. Home Assistant still supplies the complete prompt, tools and history on every request. Changed instructions or exposure can reduce reuse, and cache hits or faster responses are not guaranteed.
  • Transcription language selector for Batch and Realtime STT: follow the Assist pipeline, use automatic detection, or choose a fixed language. New entities follow the pipeline. Existing entities preserve their previous behavior until you change the setting.
  • Test dependency refresh: Home Assistant 2026.11.1 and matching fixtures, mypy 2.4.1, Ruff 0.17.5 and Mutagen 1.48.1. The runtime Mistral SDK remains 3.7.0 and the minimum supported Home Assistant remains 2026.7.4.

How to test

  1. Back up Home Assistant. Enable this repository's HACS prerelease switch if needed, following the HACS beta-version guide. In HACS, open this integration, choose Redownload, then Need a different version? and select v1.2.0b1. Restart Home Assistant after downloading. See the HACS version-selection guide.
  2. Reconfigure an STT entity under Settings > Devices & services > Mistral AI Conversation. Test Transcription language with the Assist pipeline language, automatic detection and a fixed language, using your available Batch and Realtime models. Check that existing entities and pipelines retain their settings after the update.
  3. Start separate conversations on the same Conversation entity. Inspect stats.cached_input_tokens in conversation traces, or enable integration debug logging and look for Mistral token usage. Explicit zero means the provider reported no reused tokens; an absent field means no valid cache count was reported. Input totals still include cached tokens.

Please report the selected model, Home Assistant version, transcription mode/language and any redacted error in #106 or #107. Do not include credentials, real prompts, entity inventories, transcripts or audio.

Validation and known limits

  • The combined changes passed all five pinned Home Assistant/HTTPX2 suites: 720 tests on HA 2026.11.1 and 677 tests on each older combination, with 43 expected evaluation skips. Branch coverage is 87.53–91.45%.
  • Public GitHub validation passed all five compatibility suites, HACS and Hassfest on the release commit.
  • Real HA 2026.11.1 checks with ministral-14b-2512 passed fresh conversations, a read-only Assist tool round trip and structured AI Task output. One provider usage record reported 4,608 cached input tokens out of 4,751, confirming prefix reuse with exposed tools. Other requests reported zero; no general latency improvement is claimed.
  • Live audio validation remains incomplete. Fresh direct Realtime transcription and TTS checks still returned HTTP 429 on 2026-11-15 with the maintainer's credentials. TTS reported an effective request limit of zero despite the limits displayed in the account. The cause remains unexplained. Successful live language selection and the remaining audio smoke checks require independent testing before stable 1.2.0.

Full architecture and validation details: QUALITY.md.