We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 902f71e + 76632e1 commit d41fabeCopy full SHA for d41fabe
ui/packages/platform/src/api/bot/getAiModels.ts
@@ -20,9 +20,9 @@ export const getAiModels = async (orgId?: number): Promise<{ response: AiModel[]
20
return { response: null, error: response };
21
}
22
23
- const responseData: { bot_llm_models: AiModel[] | null } = await response.json();
+ const responseData: AiModel[] | null = await response.json();
24
25
- return { response: responseData?.bot_llm_models, error: null };
+ return { response: responseData, error: null };
26
27
} catch (error) {
28
return { response: null, error: error as Response };
0 commit comments