update template name -> command name
This commit is contained in:
@@ -32,7 +32,6 @@ function cosineSimilarity(vecA: number[], vecB: number[]): number {
|
||||
async function serperSearch(query: string, serperApiKey: string, serperSearchEngine: string): Promise<SearchResult[]> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const url = `${SERPER_BASE_URL}?q=${encodeURIComponent(query)}&engine=${serperSearchEngine}&api_key=${serperApiKey}&num=20`;
|
||||
// console.log("serper search url: ", url)
|
||||
https.get(url, (res: any) => {
|
||||
let data = '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user