mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 19:07:40 +01:00
Indicate no content on function result
This commit is contained in:
parent
6a304e8884
commit
68376f7dd0
@ -733,7 +733,7 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul
|
|||||||
if (chatCompletion.canAfford(toolCallMessage)) {
|
if (chatCompletion.canAfford(toolCallMessage)) {
|
||||||
chatCompletion.reserveBudget(toolCallMessage);
|
chatCompletion.reserveBudget(toolCallMessage);
|
||||||
for (const invocation of invocations.slice().reverse()) {
|
for (const invocation of invocations.slice().reverse()) {
|
||||||
const toolResultMessage = new Message('tool', invocation.result, invocation.id);
|
const toolResultMessage = new Message('tool', invocation.result || '[No content]', invocation.id);
|
||||||
const canAfford = chatCompletion.canAfford(toolResultMessage);
|
const canAfford = chatCompletion.canAfford(toolResultMessage);
|
||||||
if (!canAfford) {
|
if (!canAfford) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user