Changeset 0.9.1 (#51)
This commit is contained in:
@@ -69,11 +69,8 @@ func (p *OpenRouterProvider) ListModels(ctx context.Context, cfg ProviderConfig)
|
||||
|
||||
out := make([]Model, 0, len(result.Data))
|
||||
for _, m := range result.Data {
|
||||
// Start with known table, fall back to heuristic
|
||||
caps, found := capabilities.LookupKnownModel(m.ID)
|
||||
if !found {
|
||||
caps = capabilities.InferCapabilities(m.ID)
|
||||
}
|
||||
// Heuristic inference from model ID
|
||||
caps := capabilities.InferCapabilities(m.ID)
|
||||
|
||||
// Overlay context length from OpenRouter metadata
|
||||
if m.ContextLength > 0 && caps.MaxContext == 0 {
|
||||
|
||||
Reference in New Issue
Block a user