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()
84
84
_disposed = true ;
85
85
86
86
// Remove this conversation from the KV cache
87
- Executor . Context . NativeHandle . KvCacheRemove ( ConversationId , 0 , _end ) ;
87
+ Executor . Context . NativeHandle . KvCacheRemove ( ConversationId , - 1 , - 1 ) ;
88
88
89
89
// Prevent finalizer from running
90
90
GC . SuppressFinalize ( this ) ;
@@ -419,8 +419,7 @@ public void Remove(LLamaPos start, int count)
419
419
if ( count <= 0 )
420
420
return ;
421
421
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 ) ;
424
423
}
425
424
#endregion
426
425
You can’t perform that action at this time.
0 commit comments