open-notebook/open_notebook/ai
Luis Novo b83f1d61e6
fix(models): stop auto-assign from re-filling cleared optional defaults (#1186)
* fix(models): stop auto-assign from re-filling cleared optional defaults

Auto-assign treated every empty default slot as "missing" and filled it,
so an optional slot a user deliberately cleared (to fall back to the chat
model) got silently re-populated on the next run, undoing the intent.

- Auto-assign now fills only the required slots (chat, embedding); the
  optional slots (transformation, tools, large context, TTS, STT) are
  left untouched.
- get_default_model("large_context") now falls back to the chat model
  when unset, matching transformation/tools (TTS/STT still return None).
- Settings UI shows an inline hint on each empty optional slot: the text
  slots show "using chat model (<name>)"; TTS/STT show a not-configured
  hint. Required slots remain non-clearable. New i18n keys across all 14
  locales.

Closes #1098

* test: guard await_args against None for mypy
2026-07-19 18:06:17 -03:00
..
assets fix: use a real speech clip for STT connection tests (#838) 2026-06-02 09:09:30 -03:00
__init__.py refactor: reorganize folder structure for better maintainability 2026-01-03 14:04:27 -03:00
connection_tester.py feat: add anthropic_compatible credential provider (#1043) 2026-07-19 15:14:17 -03:00
key_provider.py feat: add anthropic_compatible credential provider (#1043) 2026-07-19 15:14:17 -03:00
model_discovery.py feat: add anthropic_compatible credential provider (#1043) 2026-07-19 15:14:17 -03:00
models.py fix(models): stop auto-assign from re-filling cleared optional defaults (#1186) 2026-07-19 18:06:17 -03:00
provider_registry.py fix(providers): request ?type=all for PPQ model discovery (#1182) 2026-07-19 16:29:57 -03:00
provision.py refactor(ai): remove redundant anthropic to_langchain shim (#1181) 2026-07-19 15:23:25 -03:00