File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public void Dispose()
8484 _disposed = true ;
8585
8686 // Remove this conversation from the KV cache
87- Executor . Context . NativeHandle . KvCacheRemove ( ConversationId , 0 , _end ) ;
87+ Executor . Context . NativeHandle . KvCacheRemove ( ConversationId , - 1 , - 1 ) ;
8888
8989 // Prevent finalizer from running
9090 GC . SuppressFinalize ( this ) ;
@@ -419,8 +419,7 @@ public void Remove(LLamaPos start, int count)
419419 if ( count <= 0 )
420420 return ;
421421
422- var end = start . Value + count ;
423- _conversation . Executor . Context . NativeHandle . KvCacheRemove ( _conversation . ConversationId , start , end ) ;
422+ _conversation . Executor . Context . NativeHandle . KvCacheRemove ( _conversation . ConversationId , start , - 1 ) ;
424423 }
425424 #endregion
426425
You can’t perform that action at this time.
0 commit comments