Ollama: Always truncate embedding inputs

https://docs.ollama.com/api#parameters-8
This commit is contained in:
Cohee
2025-10-23 00:58:00 +03:00
parent d32ac6c018
commit da2fbbbb15
+1
View File
@@ -46,6 +46,7 @@ export async function getOllamaVector(text, apiUrl, model, keep, directories) {
prompt: text,
model: model,
keep_alive: keep ? -1 : undefined,
truncate: true,
}),
});