new(all): Auto import for logo, colors and website content.
This commit is contained in:
		
							parent
							
								
									1e12c39acb
								
							
						
					
					
						commit
						4fb5402987
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -266,12 +266,14 @@ export class ChatServices {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let memory;
 | 
					    let memory;
 | 
				
			||||||
    if (user && !this.memoryMap[user.userSystemId]) {
 | 
					    if (user && !this.memoryMap[user.userSystemId]) {
 | 
				
			||||||
      this.memoryMap[user.userSystemId] = new BufferWindowMemory({
 | 
					      memory = new BufferWindowMemory({
 | 
				
			||||||
        returnMessages: true,
 | 
					        returnMessages: true,
 | 
				
			||||||
        memoryKey: 'chat_history',
 | 
					        memoryKey: 'chat_history',
 | 
				
			||||||
        inputKey: 'input',
 | 
					        inputKey: 'input',
 | 
				
			||||||
        k: 2
 | 
					        k: 2
 | 
				
			||||||
      });  
 | 
					      });  
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      this.memoryMap[user.userSystemId] = memory;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue