mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Ollama: default context to 4096
This commit is contained in:
@@ -232,6 +232,7 @@ export const llmOllamaRouter = createTRPCRouter({
|
||||
updated: Date.parse(model.modified_at) ?? undefined,
|
||||
description: description, // description: (model.license ? `License: ${model.license}. Info: ` : '') + model.modelfile || 'Model unknown',
|
||||
contextWindow,
|
||||
...(contextWindow ? { maxCompletionTokens: Math.round(contextWindow / 2) } : {}),
|
||||
interfaces: [LLM_IF_OAI_Chat],
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user