rm log message
This commit is contained in:
parent
a958bd9f39
commit
108a86d6c4
@ -254,8 +254,6 @@ export const InlineEdit: React.FC<InlineEditProps> = ({
|
||||
}
|
||||
|
||||
const oldContent = await plugin.app.vault.read(activeFile);
|
||||
console.log(oldContent);
|
||||
console.log(updatedContent);
|
||||
await plugin.app.workspace.getLeaf(true).setViewState({
|
||||
type: APPLY_VIEW_TYPE,
|
||||
active: true,
|
||||
|
||||
@ -32,7 +32,7 @@ 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)
|
||||
// console.log("serper search url: ", url)
|
||||
https.get(url, (res: any) => {
|
||||
let data = '';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user