Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/providers/azure/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (response *AzureListModelsResponse) ToBifrostListModelsResponse(allowedMode
modelEntry.ID = string(schemas.Azure) + "/" + deploymentAlias
modelEntry.Deployment = schemas.Ptr(deploymentValue)
}

bifrostResponse.Data = append(bifrostResponse.Data, modelEntry)
}
return bifrostResponse
Expand Down
4 changes: 1 addition & 3 deletions core/providers/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1117,9 +1117,7 @@ func aggregateListModelsResponses(responses []*schemas.BifrostListModelsResponse
}
}

if len(responses) == 1 {
return responses[0]
}
// Always apply deduplication, even for single responses

// Use a map to track unique model IDs for efficient deduplication
seenIDs := make(map[string]struct{})
Expand Down