diff --git a/lib/routes-ui.js b/lib/routes-ui.js index c6152e48..40290ab9 100644 --- a/lib/routes-ui.js +++ b/lib/routes-ui.js @@ -7651,7 +7651,7 @@ ${Buffer.from(data.content, 'base64url').toString('base64')} hasOpenAiAPIKey: !!(await settings.get('openAiAPIKey')), indexInfo: await settings.get('embeddings:index'), - openAiModels: await getOpenAiModels(OPEN_AI_MODELS_CHAT, request.payload.documentStoreChatModel) + openAiModels: await getOpenAiModels(OPEN_AI_MODELS, request.payload.documentStoreChatModel) }, { layout: 'app' @@ -7693,7 +7693,7 @@ ${Buffer.from(data.content, 'base64url').toString('base64')} hasOpenAiAPIKey: !!(await settings.get('openAiAPIKey')), indexInfo: await settings.get('embeddings:index'), - openAiModels: await getOpenAiModels(OPEN_AI_MODELS_CHAT, request.payload.documentStoreChatModel), + openAiModels: await getOpenAiModels(OPEN_AI_MODELS, request.payload.documentStoreChatModel), errors },