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

Signed-off-by: clayarnoldg2m <carnold@g2m.ai>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Clay
2026-02-23 09:23:00 +13:00
committed by GitHub
parent c8d4057dd1
commit aa05308803
16 changed files with 16 additions and 56 deletions
-4
View File
@@ -6154,10 +6154,6 @@
"config_keys"
],
"properties": {
"allows_unlisted_models": {
"type": "boolean",
"description": "Whether this provider allows entering model names not in the fetched list"
},
"config_keys": {
"type": "array",
"items": {
-4
View File
@@ -832,10 +832,6 @@ export type ProviderEngine = 'openai' | 'ollama' | 'anthropic';
* Metadata about a provider's configuration requirements and capabilities
*/
export type ProviderMetadata = {
/**
* Whether this provider allows entering model names not in the fetched list
*/
allows_unlisted_models?: boolean;
/**
* Required configuration keys
*/
@@ -60,13 +60,11 @@ export const RecipeModelSelector = ({
provider: p.name,
}));
if (p.metadata.allows_unlisted_models) {
options.push({
value: `__custom__:${p.name}`,
label: 'Enter a model not listed...',
provider: p.name,
});
}
options.push({
value: `__custom__:${p.name}`,
label: 'Enter a model not listed...',
provider: p.name,
});
if (options.length > 0) {
groupedOptions.push({ options });
@@ -250,7 +250,7 @@ export const SwitchModelModal = ({
providerType: p.provider_type,
}));
if (p.metadata.allows_unlisted_models && p.provider_type !== 'Custom') {
if (p.provider_type !== 'Custom') {
options.push({
value: 'custom',
label: 'Enter a model not listed...',