Skip to content

Commit d41fabe

Browse files
author
Bogdan Tsechoev
committed
Merge branch 'hotfix-llm_models_access' into 'master'
hotfix: Assistant UI llm models list access See merge request postgres-ai/database-lab!950
2 parents 902f71e + 76632e1 commit d41fabe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/packages/platform/src/api/bot/getAiModels.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export const getAiModels = async (orgId?: number): Promise<{ response: AiModel[]
2020
return { response: null, error: response };
2121
}
2222

23-
const responseData: { bot_llm_models: AiModel[] | null } = await response.json();
23+
const responseData: AiModel[] | null = await response.json();
2424

25-
return { response: responseData?.bot_llm_models, error: null };
25+
return { response: responseData, error: null };
2626

2727
} catch (error) {
2828
return { response: null, error: error as Response };

0 commit comments

Comments
 (0)