Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix codensippet newline
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte
CHANGED
|
@@ -129,7 +129,7 @@ let out = "";
|
|
| 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
|
| 133 |
});
|
| 134 |
|
| 135 |
for await (const chunk of stream) {
|
|
@@ -199,7 +199,7 @@ let out = "";
|
|
| 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
|
| 203 |
stream: true,
|
| 204 |
});
|
| 205 |
|
|
|
|
| 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 |
|
| 135 |
for await (const chunk of stream) {
|
|
|
|
| 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 |
});
|
| 205 |
|