refactor: update fetchResponse to nest num_ctx within options. see #351
This commit is contained in:
parent
3226a35184
commit
594c5a7c8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue