Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions apps/web/src/lib/ai-gateway/providers/openrouter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { normalizeInferenceProviderId } from '@/lib/ai-gateway/providers/openrou
import { getTerminalBenchSummaries, terminalBenchFor } from '@/lib/model-stats/terminal-bench';
import { isFreeNemotronModel, NVIDIA_TRIAL_TOS } from '@/lib/ai-gateway/providers/nvidia';
import { applyCustomPricingToModel } from '@/lib/ai-gateway/custom-pricing';
import { isFableModel } from '@/lib/ai-gateway/providers/anthropic.constants';
import { addMonths } from 'date-fns';

// Re-export from shared module for backwards compatibility
Expand Down Expand Up @@ -123,6 +122,11 @@ export function shouldSuppressOpenRouterModel(model: KiloExclusiveModel): boolea
return model.status !== 'disabled' || model.pricing === null;
}

const unavailableModels = [
'claude-fable', // not available anywhere
'sakana/fugu', // not available in the EU
];

async function enhancedModelList(models: OpenRouterModel[]) {
const autoModels = buildAutoModels();
const endpointsMetadata = await getOpenRouterModelsMetadata();
Expand All @@ -135,7 +139,7 @@ async function enhancedModelList(models: OpenRouterModel[]) {
m => m.public_id === model.id && shouldSuppressOpenRouterModel(m)
) &&
!isForbiddenFreeModel(model.id) &&
!isFableModel(model.id)
!unavailableModels.some(unavailableId => model.id.includes(unavailableId))
)
.map(model => {
const preferredProvider = getPreferredProviderOrder(model.id).at(0);
Expand Down