refactor: update fetchResponse to nest num_ctx within options. see #351

This commit is contained in:
mic 2025-04-22 21:24:03 +02:00
parent 3226a35184
commit 594c5a7c8a

View file

@ -80,7 +80,7 @@ export class Ollama {
model: this.model,
messages: messages,
stream: this.stream,
...(this.num_ctx > 0 ? { num_ctx: parseInt(this.num_ctx) } : {})
...(this.num_ctx > 0 ? { options: { num_ctx: parseInt(this.num_ctx) } } : {})
}),
});
return response;