wraps SSE error responses in code block backticks
This commit is contained in:
parent
13b6a3d7b8
commit
03aaa6daad
|
@ -313,7 +313,7 @@ export function buildFakeSseMessage(type: string, string: string) {
|
||||||
model: "",
|
model: "",
|
||||||
choices: [
|
choices: [
|
||||||
{
|
{
|
||||||
delta: { content: `[${type}: ${string}]\n` },
|
delta: { content: `\`\`\`\n[${type}: ${string}]\n\`\`\`\n` },
|
||||||
index: 0,
|
index: 0,
|
||||||
finish_reason: type,
|
finish_reason: type,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue