mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
feat: search bar working, still in progress
This commit is contained in:
parent
610cba4a60
commit
0f54ffd8b4
10 changed files with 147 additions and 24 deletions
|
|
@ -85,12 +85,6 @@ const createMeiliMongooseModel = function ({ index, indexName, client, attribute
|
|||
// Push new document to Meili
|
||||
async addObjectToMeili() {
|
||||
const object = _.pick(this.toJSON(), attributesToIndex);
|
||||
// const title = (await this.getTitle()) || 'New Chat'; // Get title value
|
||||
// const objectWithTitle = {
|
||||
// ...this.toJSON(),
|
||||
// title
|
||||
// };
|
||||
// const object = _.pick(objectWithTitle, attributesToIndex); // Pick desired attributes
|
||||
|
||||
try {
|
||||
// console.log('Adding document to Meili', object);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue