File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { workspaceBYOKKeys } from '@sim/db/schema'
33import { createLogger } from '@sim/logger'
44import { and , eq } from 'drizzle-orm'
55import { getRotatingApiKey } from '@/lib/core/config/api-keys'
6+ import { env } from '@/lib/core/config/env'
67import { isHosted } from '@/lib/core/config/feature-flags'
78import { decryptSecret } from '@/lib/core/security/encryption'
89import { getWorkspaceById } from '@/lib/workspaces/permissions/utils'
@@ -69,7 +70,7 @@ export async function getApiKeyWithBYOK(
6970 const isVllmModel =
7071 provider === 'vllm' || useProvidersStore . getState ( ) . providers . vllm . models . includes ( model )
7172 if ( isVllmModel ) {
72- return { apiKey : userProvidedKey || 'empty' , isBYOK : false }
73+ return { apiKey : userProvidedKey || env . VLLM_API_KEY || 'empty' , isBYOK : false }
7374 }
7475
7576 const isBedrockModel = provider === 'bedrock' || model . startsWith ( 'bedrock/' )
You can’t perform that action at this time.
0 commit comments