mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-08-11 10:04:02 +00:00
* 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
|
||
|---|---|---|
| .. | ||
| assets | ||
| __init__.py | ||
| connection_tester.py | ||
| key_provider.py | ||
| model_discovery.py | ||
| models.py | ||
| provider_registry.py | ||
| provision.py | ||