mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 02:47:52 +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)) {
|
||||
chatCompletion.reserveBudget(toolCallMessage);
|
||||
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);
|
||||
if (!canAfford) {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user