mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix chat completion not recognizing 0-position
This commit is contained in:
@ -1106,7 +1106,7 @@ class ChatCompletion {
|
||||
this.validateMessageCollection(collection);
|
||||
this.checkTokenBudget(collection, collection.identifier);
|
||||
|
||||
if (position) {
|
||||
if (null !== position && -1 !== position) {
|
||||
this.messages.collection[position] = collection;
|
||||
} else {
|
||||
this.messages.collection.push(collection);
|
||||
|
Reference in New Issue
Block a user