Skip to content

refactor: remove allows_unlisted_models flag, always allow custom model entry#7255

Open
clayarnoldg2m wants to merge 1 commit intoblock:mainfrom
clayarnoldg2m:refactor/7103-remove-allows-unlisted-models
Open

refactor: remove allows_unlisted_models flag, always allow custom model entry#7255
clayarnoldg2m wants to merge 1 commit intoblock:mainfrom
clayarnoldg2m:refactor/7103-remove-allows-unlisted-models

Conversation

@clayarnoldg2m
Copy link
Contributor

Summary

  • Removes the allows_unlisted_models field from ProviderMetadata and its with_unlisted_models() builder method
  • All providers now always allow users to enter custom model names not in the fetched list
  • Simplifies CLI configure.rs to unconditionally show "Enter a model not listed..." option
  • Updates RecipeModelSelector.tsx and SwitchModelModal.tsx to always show custom model entry
  • Regenerates OpenAPI schema and TypeScript types (field fully removed from API)
  • 16 files changed, 56 deletions, 16 insertions

Test plan

  • cargo clippy --all-targets -- -D warnings — clean
  • cargo test — passes (2 pre-existing integration failures: claude_code, xai)
  • npx tsc --noEmit — clean
  • just generate-openapi — regenerated, no allows_unlisted_models references remain

Fixes #7103

🤖 Generated with Claude Code

…el entry

Remove the allows_unlisted_models field from ProviderMetadata and its
with_unlisted_models() builder. All providers now always allow users to
enter custom model names not in the fetched list.

Changes:
- Remove field, builder, and defaults from base.rs
- Remove .with_unlisted_models() from 7 providers
- Simplify configure.rs to always show "Enter a model not listed..."
- Clean up provider_registry.rs and test mocks
- Update RecipeModelSelector.tsx and SwitchModelModal.tsx
- Regenerate OpenAPI schema and TypeScript types

Fixes block#7103

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: clayarnoldg2m <carnold@g2m.ai>
@michaelneale
Copy link
Collaborator

I am ok with this - I can see that we have been adding the flag one by one, but why even have it? this reduces complexity, I like it, but @codefromthecrypt - you ok with it? stamp if you think so

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.

Remove allows_unlisted_models — always allow custom model entry

3 participants

Comments