wraps SSE error responses in code block backticks

This commit is contained in:
nai-degen 2023-05-23 12:28:06 -05:00
parent 13b6a3d7b8
commit 03aaa6daad
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ export function buildFakeSseMessage(type: string, string: string) {
model: "",
choices: [
{
delta: { content: `[${type}: ${string}]\n` },
delta: { content: `\`\`\`\n[${type}: ${string}]\n\`\`\`\n` },
index: 0,
finish_reason: type,
},