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…
Reference in New Issue