Re-organized functions and added semantic embeddings
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user