Re-organized functions and added semantic embeddings
All checks were successful
Publish Library / Build NPM Project (push) Successful in 46s
Publish Library / Tag Version (push) Successful in 8s

This commit is contained in:
2025-12-19 11:16:05 -05:00
parent c896b585d0
commit 435c6127b1
9 changed files with 987 additions and 123 deletions

View File

@@ -46,7 +46,7 @@ export class Ollama extends LLMProvider {
if(!system) system = history.shift();
else history.shift();
}
if(options.compress) history = await this.ai.llm.compress(<any>history, options.compress.max, options.compress.min);
if(options.compress) history = await this.ai.language.compressHistory(<any>history, options.compress.max, options.compress.min);
if(options.system) history.unshift({role: 'system', content: system})
const requestParams: any = {