Skip to content

fix: add skip_canonical_filtering to declarative providers#8052

Open
DOsinga wants to merge 3 commits intomainfrom
fix/declarative-skip-canonical-filtering
Open

fix: add skip_canonical_filtering to declarative providers#8052
DOsinga wants to merge 3 commits intomainfrom
fix/declarative-skip-canonical-filtering

Conversation

@DOsinga
Copy link
Collaborator

@DOsinga DOsinga commented Mar 21, 2026

Summary

Declarative providers serving arbitrary local models (e.g. LM Studio) have model names that won't match the canonical registry, so the existing filtering in fetch_recommended_models returns an empty list.

Details

Adds a skip_canonical_filtering boolean field to DeclarativeProviderConfig (defaults false, so no behaviour change for existing providers). When true, fetch_recommended_models returns all models from fetch_supported_models directly without consulting the canonical registry.

Sets skip_canonical_filtering: true in lmstudio.json so locally-served models are listed as-is.

This is a clean, minimal fix for the same problem raised in #8043 and #8001 — without name-string hardcoding or a new provider-type enum.

Closes #8043
cc #8001

Declarative providers serving arbitrary local models (e.g. LM Studio)
have model names that won't match the canonical registry, so filtering
them out leaves an empty model list.

Add a boolean skip_canonical_filtering field to DeclarativeProviderConfig
(defaults false) and honour it in fetch_recommended_models. Set it to
true in lmstudio.json so all locally-served models are returned as-is.

Fixes the same problem addressed by #8043 and #8001.

Signed-off-by: Douwe Osinga <douwe@squareup.com>
Douwe Osinga added 2 commits March 21, 2026 15:14
Signed-off-by: Douwe Osinga <douwe@squareup.com>
Signed-off-by: Douwe Osinga <douwe@squareup.com>
@DOsinga
Copy link
Collaborator Author

DOsinga commented Mar 21, 2026

@nelsonr462 and @octogonz - I think this does what we want to get done here? let me know if not.

@DOsinga DOsinga requested a review from jamadeo March 21, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants