Files
sunnypilot/common
Nayan 78007e82e0 ui: show default model name (#1837)
* py py py

* sunnylink too

* refactor

* this is not needed anymore

* mici mici

* ugh

* retry CI

* ui: refactor default model name handling

Move DEFAULT_MODEL constant into sunnypilot/models/default_model.py
and remove the one-liner common/model.py. Strip the hardcoded
" (Default)" suffix from the constant value so each UI site appends
it contextually, keeping the raw model name clean for the schema
payload to sunnylink.

Replace the DefaultModel param approach with schema["default_model"]
injected at schema assembly time, eliminating a redundant param write
on every sunnylinkd start. Remove DefaultModel from params_keys.h and
params_metadata.json.

Update update_default_model_name() to do a targeted regex replacement
instead of overwriting the whole file, since the constant now lives in
a module with other code.

---------

Co-authored-by: Jason Wen <haibin.wen3@gmail.com>
2026-05-11 01:19:10 -04:00
..
2024-08-13 21:11:16 -07:00
2020-01-17 10:28:44 -08:00
2023-12-09 13:24:18 -08:00
2026-02-23 16:49:48 -08:00
2026-03-04 19:37:24 -08:00
2025-12-28 10:42:49 -08:00
2025-05-30 13:31:07 -07:00
2025-06-01 16:34:22 -07:00
2026-05-03 13:18:15 -04:00
2025-07-22 19:30:47 -07:00
2026-01-19 11:39:21 -08:00
2025-12-28 10:42:49 -08:00
2026-03-13 19:20:33 -07:00
2024-05-20 17:43:54 -07:00
2025-10-21 17:12:57 -04:00
2026-03-10 10:20:23 -07:00