feat: Add assistant filter support to documents page (#10697)
This PR introduces support for an assistant filter on the documents page. - Moved the existing assistant filter functionality to a standalone, reusable component. - Updated the documents page and responses page to use the component
This commit is contained in:
@@ -6,11 +6,12 @@ class CaptainDocument extends ApiClient {
|
||||
super('captain/documents', { accountScoped: true });
|
||||
}
|
||||
|
||||
get({ page = 1, searchKey } = {}) {
|
||||
get({ page = 1, searchKey, assistantId } = {}) {
|
||||
return axios.get(this.url, {
|
||||
params: {
|
||||
page,
|
||||
searchKey,
|
||||
assistant_id: assistantId,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user