fix: use on prem proxy
This commit is contained in:
parent
dff18c834b
commit
f40b72807e
2 changed files with 3 additions and 3 deletions
|
|
@ -353,7 +353,7 @@ async function loadAssistantSlug(
|
|||
}
|
||||
|
||||
// Unroll locally if not logged in
|
||||
if (!(apiClient as any).configuration.apiKey) {
|
||||
if (!(apiClient as any).configuration.accessToken) {
|
||||
return await unrollAssistantWithConfig(
|
||||
{
|
||||
uriType: "slug",
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ export class ModelService
|
|||
env: {
|
||||
apiKeyLocation: (selectedModel as any).apiKeyLocation,
|
||||
orgScopeId: organizationId,
|
||||
proxyUrl: undefined,
|
||||
proxyUrl: (selectedModel as any).onPremProxyUrl ?? undefined,
|
||||
},
|
||||
}
|
||||
: {
|
||||
|
|
@ -301,7 +301,7 @@ export class ModelService
|
|||
env: {
|
||||
apiKeyLocation: (selectedModel as any).apiKeyLocation,
|
||||
orgScopeId: organizationId,
|
||||
proxyUrl: undefined,
|
||||
proxyUrl: (selectedModel as any).onPremProxyUrl ?? undefined,
|
||||
},
|
||||
}
|
||||
: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue