First upload version 0.0.1
This commit is contained in:
20
node_modules/node-llama-cpp/dist/utils/findCharacterRemovalCountToFitChatHistoryInContext.d.ts
generated
vendored
Normal file
20
node_modules/node-llama-cpp/dist/utils/findCharacterRemovalCountToFitChatHistoryInContext.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ChatHistoryItem, Tokenizer } from "../types.js";
|
||||
import { ChatWrapper } from "../ChatWrapper.js";
|
||||
export declare function findCharacterRemovalCountToFitChatHistoryInContext({ compressChatHistory, chatHistory, tokensCountToFit, tokenizer, chatWrapper, initialCharactersRemovalCount, estimatedCharactersPerToken, maxDecompressionAttempts, failedCompressionErrorMessage }: {
|
||||
compressChatHistory(options: {
|
||||
chatHistory: readonly ChatHistoryItem[];
|
||||
charactersToRemove: number;
|
||||
estimatedCharactersPerToken: number;
|
||||
}): ChatHistoryItem[] | Promise<ChatHistoryItem[]>;
|
||||
chatHistory: ChatHistoryItem[];
|
||||
tokensCountToFit: number;
|
||||
tokenizer: Tokenizer;
|
||||
chatWrapper: ChatWrapper;
|
||||
initialCharactersRemovalCount?: number;
|
||||
estimatedCharactersPerToken?: number;
|
||||
maxDecompressionAttempts?: number;
|
||||
failedCompressionErrorMessage?: string;
|
||||
}): Promise<{
|
||||
removedCharactersCount: number;
|
||||
compressedChatHistory: ChatHistoryItem[];
|
||||
}>;
|
||||
Reference in New Issue
Block a user