fix(api): enhance ClaudeModels response to align with api.anthropic.com

This commit is contained in:
Darley
2026-01-24 04:38:13 +03:30
parent 0d6ecb0191
commit 46c6fb1e7a
2 changed files with 18 additions and 3 deletions

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