Show custom OpenAI/Anthropic-compatible providers in onboarding and settings

This commit is contained in:
ZacharyZhang-NY committed 2026-05-29 22:56:01 -04:00
1 parent 4d2425dde0
commit 9996b89f72
5 files changed
+60 -4

No files matched your search

@@ -85,7 +85,7 @@ export class OnboardingService {
private resolveProvider(providerKey: string) {
const provider = PROVIDER_CATALOG.find((entry) => entry.key === providerKey);
if (!provider) throw new Error(`Provider ${providerKey} is unavailable.`);
if (provider.authType === PROVIDER_AUTH_TYPE.CLOUD) {
if (provider.authType === PROVIDER_AUTH_TYPE.CLOUD && !provider.customEndpoint) {
throw new Error("Cloud providers need extended configuration — connect them from Settings after the company is created.");
}
return provider;