mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-05-13 19:11:02 +00:00
update embeddings
This commit is contained in:
@@ -56,7 +56,9 @@ export async function matchSearchUsingCorePlugin(
|
||||
break;
|
||||
}
|
||||
|
||||
const content = await vault.cachedRead(file as TFile);
|
||||
let content = await vault.cachedRead(file as TFile);
|
||||
// 清理null字节,防止PostgreSQL UTF8编码错误
|
||||
content = content.replace(/\0/g, '');
|
||||
const lines = content.split('\n');
|
||||
|
||||
// `fileMatches.result.content` holds an array of matches for the file.
|
||||
|
||||
Reference in New Issue
Block a user