fix snippet messages content spacing
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte
CHANGED
@@ -128,7 +128,7 @@ let out = "";
|
|
128 |
|
129 |
const stream = client.chatCompletionStream({
|
130 |
model: "${conversation.model.id}",
|
131 |
-
messages: ${formattedMessages({ sep: ",\n\t", start: "[\n\t", end: "\n
|
132 |
${formattedConfig({ sep: ",\n\t", start: "", end: "" })}
|
133 |
});
|
134 |
|
@@ -198,7 +198,7 @@ let out = "";
|
|
198 |
|
199 |
const stream = await client.chat.completions.create({
|
200 |
model: "${conversation.model.id}",
|
201 |
-
messages: ${formattedMessages({ sep: ",\n\t", start: "[\n\t", end: "\n
|
202 |
${formattedConfig({ sep: ",\n\t", start: "", end: "" })},
|
203 |
stream: true,
|
204 |
});
|
|
|
128 |
|
129 |
const stream = client.chatCompletionStream({
|
130 |
model: "${conversation.model.id}",
|
131 |
+
messages: ${formattedMessages({ sep: ",\n\t\t", start: "[\n\t\t", end: "\n\t]" })},
|
132 |
${formattedConfig({ sep: ",\n\t", start: "", end: "" })}
|
133 |
});
|
134 |
|
|
|
198 |
|
199 |
const stream = await client.chat.completions.create({
|
200 |
model: "${conversation.model.id}",
|
201 |
+
messages: ${formattedMessages({ sep: ",\n\t\t", start: "[\n\t\t", end: "\n\t]" })},
|
202 |
${formattedConfig({ sep: ",\n\t", start: "", end: "" })},
|
203 |
stream: true,
|
204 |
});
|