fix: type error

This commit is contained in:
Nate 2025-09-11 14:50:19 -07:00
parent d8977cd439
commit da047c4e93

View file

@ -40,7 +40,9 @@ export function createLlmApi(
env: {
apiKeyLocation: (model as any).apiKeyLocation,
orgScopeId: organizationId,
proxyUrl: (model as any).onPremProxyUrl ?? undefined,
proxyUrl:
(model as { onPremProxyUrl: string | undefined })
.onPremProxyUrl ?? undefined,
},
}
: {
@ -51,7 +53,7 @@ export function createLlmApi(
env: model.env,
};
return constructLlmApi(config);
return constructLlmApi(config) ?? null;
}
export function getLlmApi(