mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-06 04:48:04 +00:00
Merge pull request #209 from patrykwegrzyn/main
feat: set numCtx = 32768 for Ollama models
This commit is contained in:
commit
1ba0606e58
@ -58,7 +58,10 @@ export function getGroqModel(apiKey: string, model: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getOllamaModel(baseURL: string, model: string) {
|
export function getOllamaModel(baseURL: string, model: string) {
|
||||||
let Ollama = ollama(model);
|
let Ollama = ollama(model, {
|
||||||
|
numCtx: 32768,
|
||||||
|
});
|
||||||
|
|
||||||
Ollama.config.baseURL = `${baseURL}/api`;
|
Ollama.config.baseURL = `${baseURL}/api`;
|
||||||
return Ollama;
|
return Ollama;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user