Skip to content

Commit b7308d8

Browse files
Remove the forced override of the context limit for Ollama API, as it can force the Ollama server to perform an unexpected reload. This ensures the new native-ollama behavior is the same as the previous behavior.
A followup PR will be added to allow this to be overridden in the UI.
1 parent 0497ec5 commit b7308d8

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
@@ -195,7 +195,6 @@ export class NativeOllamaHandler extends BaseProvider implements SingleCompletio
195195
messages: ollamaMessages,
196196
stream: true,
197197
options: {
198-
num_ctx: modelInfo.contextWindow,
199198
temperature: this.options.modelTemperature ?? (useR1Format ? DEEP_SEEK_DEFAULT_TEMPERATURE : 0),
200199
},
201200
})

0 commit comments

Comments
 (0)