From 76632e1641ade252a282f55a10ad8ecb58db8e7a Mon Sep 17 00:00:00 2001 From: Bogdan Tsechoev Date: Fri, 20 Dec 2024 03:32:22 +0000 Subject: [PATCH] hotfix: Assistant UI llm models list access --- ui/packages/platform/src/api/bot/getAiModels.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/platform/src/api/bot/getAiModels.ts b/ui/packages/platform/src/api/bot/getAiModels.ts index b8e1afb0..eba0a0c0 100644 --- a/ui/packages/platform/src/api/bot/getAiModels.ts +++ b/ui/packages/platform/src/api/bot/getAiModels.ts @@ -20,9 +20,9 @@ export const getAiModels = async (orgId?: number): Promise<{ response: AiModel[] return { response: null, error: response }; } - const responseData: { bot_llm_models: AiModel[] | null } = await response.json(); + const responseData: AiModel[] | null = await response.json(); - return { response: responseData?.bot_llm_models, error: null }; + return { response: responseData, error: null }; } catch (error) { return { response: null, error: error as Response };