fix import paths in chunking

This commit is contained in:
perf3ct 2025-03-30 19:35:07 +00:00
parent 9dd76873ac
commit 6b86bf93ae
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232

View File

@ -120,8 +120,8 @@ export async function processNoteWithChunking(
{
// Adjust chunk size based on provider using constants
maxChunkSize: provider.name === 'ollama' ?
(await import('../../../../routes/api/llm.js')).LLM_CONSTANTS.CHUNKING.OLLAMA_SIZE :
(await import('../../../../routes/api/llm.js')).LLM_CONSTANTS.CHUNKING.DEFAULT_SIZE,
(await import('../../../llm/constants/provider_constants.js')).LLM_CONSTANTS.CHUNKING.OLLAMA_SIZE :
(await import('../../../llm/constants/provider_constants.js')).LLM_CONSTANTS.CHUNKING.DEFAULT_SIZE,
respectBoundaries: true
}
);