mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 09:46:25 +02:00
improve ge chat by search cpace request type
This commit is contained in:
parent
1a954bc184
commit
68e4d9b23e
3 changed files with 22 additions and 11 deletions
|
|
@ -45,10 +45,11 @@ class ChatApiService {
|
|||
throw new ValidationError(`Invalid request: ${errorMessage}`);
|
||||
}
|
||||
|
||||
return baseApiService.get(
|
||||
`/api/v1/chats?search_space_id=${request.search_space_id}`,
|
||||
z.array(chatSummary)
|
||||
);
|
||||
const queryParams = parsedRequest.data.queryParams
|
||||
? new URLSearchParams(parsedRequest.data.queryParams).toString()
|
||||
: undefined;
|
||||
|
||||
return baseApiService.get(`/api/v1/chats?${queryParams}`, z.array(chatSummary));
|
||||
};
|
||||
|
||||
deleteChat = async (request: DeleteChatRequest) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue