admin: fix duplicate gguf configs from whisper-server pollution
Editing a GGUF model's config kept appending duplicate entries. Root cause:
api_cached_models added whisper-server entries to the backing GGUF file's
config list (keyed by model_path). With whisper0/whisper1 both pointing at
the file, the GGUF row's configs[0] became a whisper-server entry, which
carries no config_id — so "Configure" on that row treated every save as a
brand-new config and spawned a fresh duplicate each time.
- cached-models: skip whisper-server entries entirely (they're managed in
their own card; the file still shows "loaded" via its model_path key).
- model-configure (whisper-server): update an existing entry in place when
the id matches instead of 409-or-append, preserving unmanaged fields
(engine, config_id).
- model-disable: guard against whisper-server entries' path=None so a
path-based disable can't crash on basename(None).
Co-Authored-By:
Claude Opus 4.8 <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment