fix(registry): always clone available model snapshots
This commit is contained in:
@@ -830,9 +830,6 @@ func (r *ModelRegistry) buildAvailableModelsLocked(handlerType string, now time.
|
|||||||
}
|
}
|
||||||
|
|
||||||
func cloneModelMaps(models []map[string]any) []map[string]any {
|
func cloneModelMaps(models []map[string]any) []map[string]any {
|
||||||
if len(models) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
cloned := make([]map[string]any, 0, len(models))
|
cloned := make([]map[string]any, 0, len(models))
|
||||||
for _, model := range models {
|
for _, model := range models {
|
||||||
if model == nil {
|
if model == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user