• Stefy Lanza (nextime / spora )'s avatar
    admin: fix duplicate gguf configs from whisper-server pollution · ea8dd92c
    Stefy Lanza (nextime / spora ) authored
    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: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    ea8dd92c
Name
Last commit
Last update
..
admin Loading commit data...
api Loading commit data...
backends Loading commit data...
broker Loading commit data...
frontproxy Loading commit data...
models Loading commit data...
openai Loading commit data...
pydantic Loading commit data...
queue Loading commit data...
tasks Loading commit data...
__init__.py Loading commit data...
cli.py Loading commit data...
config.py Loading commit data...
main.py Loading commit data...
platform_paths.py Loading commit data...