fix(registry): always clone available model snapshots

This commit is contained in:
chujian
2026-03-07 18:40:02 +08:00
parent 97ef633c57
commit 099e734a02

View File

@@ -830,9 +830,6 @@ func (r *ModelRegistry) buildAvailableModelsLocked(handlerType string, now time.
}
func cloneModelMaps(models []map[string]any) []map[string]any {
if len(models) == 0 {
return nil
}
cloned := make([]map[string]any, 0, len(models))
for _, model := range models {
if model == nil {