fix: type error
This commit is contained in:
parent
d8977cd439
commit
da047c4e93
1 changed files with 4 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue