feat(cliproxy): propagate thinking support metadata to aliased models

This commit is contained in:
hkfires
2025-12-30 15:16:54 +08:00
parent 70fdd70b84
commit ce7474d953
2 changed files with 34 additions and 2 deletions

View File

@@ -1150,14 +1150,20 @@ func buildConfigModels[T modelEntry](models []T, ownedBy, modelType string) []*M
if display == "" {
display = alias
}
out = append(out, &ModelInfo{
info := &ModelInfo{
ID: alias,
Object: "model",
Created: now,
OwnedBy: ownedBy,
Type: modelType,
DisplayName: display,
})
}
if name != "" {
if upstream := registry.LookupStaticModelInfo(name); upstream != nil && upstream.Thinking != nil {
info.Thinking = upstream.Thinking
}
}
out = append(out, info)
}
return out
}