Skip to content

Commit af32353

Browse files
roomotedaniel-lxs
authored andcommitted
fix: remove num_ctx parameter from Ollama chat options
The num_ctx parameter was being passed to the Ollama chat API but is no longer needed. This removes it from the options object to simplify the configuration.
1 parent ae8a639 commit af32353

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/api/providers/native-ollama.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export class NativeOllamaHandler extends BaseProvider implements SingleCompletio
190190
messages: ollamaMessages,
191191
stream: true,
192192
options: {
193-
num_ctx: modelInfo.contextWindow,
194193
temperature: this.options.modelTemperature ?? (useR1Format ? DEEP_SEEK_DEFAULT_TEMPERATURE : 0),
195194
},
196195
})

0 commit comments

Comments
 (0)