mirror of
https://github.com/bitbaum/ai-kit.git
synced 2026-12-04 06:08:35 +01:00
heidi's Swiss German pages passed their locale, gsw, as the language hint. Groq answered 400 'unsupported language: gsw' on every link, and the microphone said dictation did not work in this browser. Romansh (rm) failed the same way. whisperLanguage() maps a tag or locale to a hint Whisper accepts: gsw -> de, de-CH -> de, unknown -> none (auto-detect). Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>