new(core.gbapp): New API endpoint.
This commit is contained in:
		
							parent
							
								
									df41f1c55b
								
							
						
					
					
						commit
						43feb52788
					
				
					 1 changed files with 11 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -492,12 +492,14 @@ export class ChatServices {
 | 
			
		|||
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    if (process.env.WIKIPEDIA_TOOL) {
 | 
			
		||||
 | 
			
		||||
      const tool = new WikipediaQueryRun({
 | 
			
		||||
        topKResults: 3,
 | 
			
		||||
        maxDocContentLength: 4000,
 | 
			
		||||
      });
 | 
			
		||||
      functions.push(tool);
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
    return functions;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue