mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-20 19:12:07 +08:00
78007e82e0
* 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>