Merge pull request #3862 from continuedev/dallin/empty-prompt-logs
Fix empty prompt logs
This commit is contained in:
commit
e67be03722
1 changed files with 5 additions and 3 deletions
|
|
@ -460,9 +460,11 @@ export abstract class BaseLLM implements ILLM {
|
|||
`${toolCall.function?.name}(${toolCall.function?.arguments})`,
|
||||
)
|
||||
.join("\n");
|
||||
} else if ("content" in msg && Array.isArray(msg.content)) {
|
||||
const content = renderChatMessage(msg);
|
||||
msg.content = content;
|
||||
} else if ("content" in msg) {
|
||||
if (Array.isArray(msg.content)) {
|
||||
msg.content = renderChatMessage(msg);
|
||||
}
|
||||
contentToShow = msg.content;
|
||||
}
|
||||
|
||||
formatted += `<${msg.role}>\n${contentToShow}\n\n`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue