Skip to content

Commit

Permalink
Merge branch 'hotfix-llm_models_access' into 'master'
Browse files Browse the repository at this point in the history
hotfix: Assistant UI llm models list access

See merge request postgres-ai/database-lab!950
  • Loading branch information
Bogdan Tsechoev committed Dec 20, 2024
2 parents 902f71e + 76632e1 commit d41fabe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/packages/platform/src/api/bot/getAiModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit d41fabe

Please sign in to comment.