Skip to content

Commit 6de7e3a

Browse files
committed
missed one
1 parent 1d1078f commit 6de7e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/LlamaCore/Private/Internal/LlamaInternal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void FLlamaInternal::ResetContextHistory(bool bKeepSystemsPrompt)
320320
void FLlamaInternal::RollbackContextHistoryByTokens(int32 NTokensToErase)
321321
{
322322
// clear the last n_regen tokens from the KV cache and update n_past
323-
int32 TokensUsed = llama_get_kv_cache_used_cells(Context); //FilledContextCharLength
323+
int32 TokensUsed = llama_kv_self_used_cells(Context); //FilledContextCharLength
324324

325325
llama_kv_self_seq_rm(Context, 0, TokensUsed - NTokensToErase, -1);
326326

0 commit comments

Comments
 (0)