Skip to content

Commit

Permalink
fix(CE): fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
macintushar authored Nov 19, 2024
1 parent 95ec55e commit 83bb7b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/services/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ export const getModelPreview = async (query: string, connector_id: string): Prom
return apiRequest(url, { query: query });
};

export const getAllModels = async ({ type = 'data' }: GetAllModelsProps): Promise<APIData> =>
multiwovenFetch<null, APIData>({
export const getAllModels = async ({
type = 'data',
}: GetAllModelsProps): Promise<ApiResponse<GetAllModelsResponse[]>> =>
multiwovenFetch<null, ApiResponse<GetAllModelsResponse[]>>({
method: 'get',
url: type ? `/models?query_type=${type}` : '/models',
});
Expand Down

0 comments on commit 83bb7b7

Please sign in to comment.