fix: default case correct

This commit is contained in:
Frost Ming
2025-03-05 16:19:28 +08:00
committed by GitHub
parent a7fd64e019
commit efd176451f

View File

@@ -75,7 +75,7 @@ export function selectAIProvider(config: { apiUrl: string; apiKey: string }) {
Authorization: `Bearer ${config.apiKey}`,
},
)};
case default:
throw new Error(`Unsupported AI provider for URL: ${config.apiUrl}`);
default:
throw new Error(`Unsupported AI provider: ${providerName}`);
}
}