Indicate no content on function result
| @@ -733,7 +733,7 @@ async function populateChatHistory(messages, prompts, chatCompletion, type = nul | ||
| 733 | 733 | if (chatCompletion.canAfford(toolCallMessage)) { |
| 734 | 734 | chatCompletion.reserveBudget(toolCallMessage); |
| 735 | 735 | for (const invocation of invocations.slice().reverse()) { |
| 736 | 736 | const toolResultMessage = new Message('tool', invocation.result || '[No content]', invocation.id); |
| 737 | 737 | const canAfford = chatCompletion.canAfford(toolResultMessage); |
| 738 | 738 | if (!canAfford) { |
| 739 | 739 | break; |