Merge pull request #1183 from Darley-Wey/fix/api-align

fix(api): enhance ClaudeModels response to align with api.anthropic.com
This commit is contained in:
Luis Pater
2026-01-25 03:30:14 +08:00
committed by GitHub
2 changed files with 18 additions and 3 deletions
+2 -2
View File
@@ -1033,10 +1033,10 @@ func (r *ModelRegistry) convertModelToMap(model *ModelInfo, handlerType string)
"owned_by": model.OwnedBy,
}
if model.Created > 0 {
result["created"] = model.Created
result["created_at"] = model.Created
}
if model.Type != "" {
result["type"] = model.Type
result["type"] = "model"
}
if model.DisplayName != "" {
result["display_name"] = model.DisplayName