Add OpenRouter reasoning support
This commit is contained in:
@@ -833,8 +833,12 @@ func (svc *Service) models(w http.ResponseWriter, r *http.Request) {
|
||||
for _, m := range models {
|
||||
baseID, _, _ := strings.Cut(m.ID, ":")
|
||||
available[baseID] = struct{}{}
|
||||
if m.Meta != nil && m.Meta.NCtx > 0 {
|
||||
contextSizes[baseID] = m.Meta.NCtx
|
||||
cs := m.ContextLength
|
||||
if cs == 0 && m.Meta != nil {
|
||||
cs = m.Meta.NCtx
|
||||
}
|
||||
if cs > 0 {
|
||||
contextSizes[baseID] = cs
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user