improve ge chat by search cpace request type

This commit is contained in:
thierryverse 2025-11-18 21:11:29 +02:00
parent 1a954bc184
commit 68e4d9b23e
3 changed files with 22 additions and 11 deletions

View file

@ -38,7 +38,9 @@ export const activeSearchSpaceChatsAtom = atomWithQuery((get) => {
queryKey: cacheKeys.activeSearchSpace.chats(searchSpaceId ?? ""),
enabled: !!searchSpaceId && !!authToken,
queryFn: async () => {
return chatsApiService.getChatsBySearchSpace({ search_space_id: Number(searchSpaceId) });
return chatsApiService.getChatsBySearchSpace({
queryParams: { search_space_id: searchSpaceId! },
});
},
};
});