@@ -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 ,  - 1 ,  - 1 ) ; 
87+         Executor . Context . NativeHandle . MemorySequenceRemove ( ConversationId ,  - 1 ,  - 1 ) ; 
8888
8989        // Prevent finalizer from running 
9090        GC . SuppressFinalize ( this ) ; 
@@ -129,7 +129,7 @@ public Conversation Fork()
129129        _forked  =  true ; 
130130
131131        // Assign tokens to the new sequence 
132-         Executor . Context . NativeHandle . KvCacheSequenceCopy ( ConversationId ,  c . ConversationId ,  0 ,  _end ) ; 
132+         Executor . Context . NativeHandle . MemorySequenceCopy ( ConversationId ,  c . ConversationId ,  0 ,  _end ) ; 
133133
134134        return  c ; 
135135    } 
@@ -406,7 +406,7 @@ internal KvAccessor(Conversation conversation)
406406        /// <param name="end">End position (exclusive)</param> 
407407        public  void  Remove ( LLamaPos  start ,  LLamaPos  end ) 
408408        { 
409-             _conversation . Executor . Context . NativeHandle . KvCacheRemove ( _conversation . ConversationId ,  start ,  end ) ; 
409+             _conversation . Executor . Context . NativeHandle . MemorySequenceRemove ( _conversation . ConversationId ,  start ,  end ) ; 
410410        } 
411411
412412        /// <summary> 
@@ -420,7 +420,7 @@ public void Remove(LLamaPos start, int count)
420420                return ; 
421421
422422            var  end  =  start . Value  +  count ; 
423-             _conversation . Executor . Context . NativeHandle . KvCacheRemove ( _conversation . ConversationId ,  start ,  end ) ; 
423+             _conversation . Executor . Context . NativeHandle . MemorySequenceRemove ( _conversation . ConversationId ,  start ,  end ) ; 
424424        } 
425425        #endregion
426426
@@ -435,7 +435,7 @@ public void Remove(LLamaPos start, int count)
435435        /// <param name="delta">Amount to add on to each token position</param> 
436436        public  void  Add ( LLamaPos  start ,  LLamaPos  end ,  int  delta ) 
437437        { 
438-             _conversation . Executor . Context . NativeHandle . KvCacheSequenceAdd ( _conversation . ConversationId ,  start ,  end ,  delta ) ; 
438+             _conversation . Executor . Context . NativeHandle . MemorySequenceAdd ( _conversation . ConversationId ,  start ,  end ,  delta ) ; 
439439        } 
440440        #endregion
441441
@@ -452,7 +452,7 @@ public void Divide(LLamaPos start, LLamaPos end, int divisor)
452452            if  ( divisor  <=  0 ) 
453453                throw  new  ArgumentOutOfRangeException ( nameof ( divisor ) ) ; 
454454
455-             _conversation . Executor . Context . NativeHandle . KvCacheSequenceDivide ( _conversation . ConversationId ,  start ,  end ,  divisor ) ; 
455+             _conversation . Executor . Context . NativeHandle . MemorySequenceDivide ( _conversation . ConversationId ,  start ,  end ,  divisor ) ; 
456456        } 
457457        #endregion
458458    } 
0 commit comments