Is your feature request related to a problem? Please describe.
The current documentation in https://github.com/logancyang/obsidian-copilot/blob/master/local_copilot.md instructs Ollama users to use ollama run <model> and /set parameter num_ctx <value> to change the context window size for Ollama models. This is IMHO way too cumbersome and hardly necessary, as the desired context size can be specified in each API request. The Ollama server will (re)initialize the model with new parameter values (including num_ctx) when it detects a change from their default or previous values.
Describe the solution you'd like
Describe alternatives you've considered
Explain to users how they can create their own Ollama models derived from base models using ollama create <model> with a Modelfile containing the desired changes. This can even be done programmatically, instead of running each and every model in turn using ollama run <model> to set parameters.
Additional context
Is your feature request related to a problem? Please describe.
The current documentation in https://github.com/logancyang/obsidian-copilot/blob/master/local_copilot.md instructs Ollama users to use
ollama run <model>and/set parameter num_ctx <value>to change the context window size for Ollama models. This is IMHO way too cumbersome and hardly necessary, as the desired context size can be specified in each API request. The Ollama server will (re)initialize the model with new parameter values (includingnum_ctx) when it detects a change from their default or previous values.Describe the solution you'd like
Context window sizefield in the Ollama section of the plugin settings where users can fill in their desired context window size."num_ctx": <value>in theoptionsdict in every chat API request (remember to send it in every request, or else the server will revert back to default model parameter settings for any parameters left out). See: https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-chat-completion (Advanced parameters) and here: https://github.com/ollama/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values .num_ctxin the chat API request'soptionsdict, the server will use the model default in that case.Describe alternatives you've considered
Explain to users how they can create their own Ollama models derived from base models using
ollama create <model>with a Modelfile containing the desired changes. This can even be done programmatically, instead of running each and every model in turn usingollama run <model>to set parameters.Additional context