Ollama: Always truncate embedding inputs https://docs.ollama.com/api#parameters-8

da2fbbbb159761e8de865b8b75e768c938f729fb

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -0Ignore whitespace
src/vectors/ollama-vectors.js+1 -0
@@ -46,6 +46,7 @@ export async function getOllamaVector(text, apiUrl, model, keep, directories) {
4646 prompt: text,
4747 model: model,
4848 keep_alive: keep ? -1 : undefined,
49+ truncate: true,
4950 }),
5051 });
5152