Skip to content

Commit e04e627

Browse files
committed
re-generate snippets
1 parent b1ac358 commit e04e627

File tree

8 files changed

+40
-40
lines changed

8 files changed

+40
-40
lines changed

packages/tasks-gen/snippets-fixtures/conversational-llm-non-stream/0.huggingface.js.hf-inference.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const chatCompletion = await client.chatCompletion({
77
messages: [
88
{
99
role: "user",
10-
content: "What is the capital of France?",
11-
},
10+
content: "What is the capital of France?"
11+
}
1212
],
1313
provider: "hf-inference",
1414
max_tokens: 500,

packages/tasks-gen/snippets-fixtures/conversational-llm-non-stream/0.huggingface.js.together.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const chatCompletion = await client.chatCompletion({
77
messages: [
88
{
99
role: "user",
10-
content: "What is the capital of France?",
11-
},
10+
content: "What is the capital of France?"
11+
}
1212
],
1313
provider: "together",
1414
max_tokens: 500,

packages/tasks-gen/snippets-fixtures/conversational-llm-stream/0.huggingface.js.hf-inference.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const stream = client.chatCompletionStream({
99
messages: [
1010
{
1111
role: "user",
12-
content: "What is the capital of France?",
13-
},
12+
content: "What is the capital of France?"
13+
}
1414
],
1515
provider: "hf-inference",
1616
max_tokens: 500,
@@ -21,5 +21,5 @@ for await (const chunk of stream) {
2121
const newContent = chunk.choices[0].delta.content;
2222
out += newContent;
2323
console.log(newContent);
24-
}
25-
}
24+
}
25+
}

packages/tasks-gen/snippets-fixtures/conversational-llm-stream/0.huggingface.js.together.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const stream = client.chatCompletionStream({
99
messages: [
1010
{
1111
role: "user",
12-
content: "What is the capital of France?",
13-
},
12+
content: "What is the capital of France?"
13+
}
1414
],
1515
provider: "together",
1616
max_tokens: 500,
@@ -21,5 +21,5 @@ for await (const chunk of stream) {
2121
const newContent = chunk.choices[0].delta.content;
2222
out += newContent;
2323
console.log(newContent);
24-
}
25-
}
24+
}
25+
}

packages/tasks-gen/snippets-fixtures/conversational-vlm-non-stream/0.huggingface.js.fireworks-ai.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ const chatCompletion = await client.chatCompletion({
1010
content: [
1111
{
1212
type: "text",
13-
text: "Describe this image in one sentence.",
13+
text: "Describe this image in one sentence."
1414
},
1515
{
1616
type: "image_url",
1717
image_url: {
18-
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg",
19-
},
20-
},
21-
],
22-
},
18+
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
19+
}
20+
}
21+
]
22+
}
2323
],
2424
provider: "fireworks-ai",
2525
max_tokens: 500,

packages/tasks-gen/snippets-fixtures/conversational-vlm-non-stream/0.huggingface.js.hf-inference.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ const chatCompletion = await client.chatCompletion({
1010
content: [
1111
{
1212
type: "text",
13-
text: "Describe this image in one sentence.",
13+
text: "Describe this image in one sentence."
1414
},
1515
{
1616
type: "image_url",
1717
image_url: {
18-
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg",
19-
},
20-
},
21-
],
22-
},
18+
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
19+
}
20+
}
21+
]
22+
}
2323
],
2424
provider: "hf-inference",
2525
max_tokens: 500,

packages/tasks-gen/snippets-fixtures/conversational-vlm-stream/0.huggingface.js.fireworks-ai.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ const stream = client.chatCompletionStream({
1212
content: [
1313
{
1414
type: "text",
15-
text: "Describe this image in one sentence.",
15+
text: "Describe this image in one sentence."
1616
},
1717
{
1818
type: "image_url",
1919
image_url: {
20-
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg",
21-
},
22-
},
23-
],
24-
},
20+
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
21+
}
22+
}
23+
]
24+
}
2525
],
2626
provider: "fireworks-ai",
2727
max_tokens: 500,
@@ -32,5 +32,5 @@ for await (const chunk of stream) {
3232
const newContent = chunk.choices[0].delta.content;
3333
out += newContent;
3434
console.log(newContent);
35-
}
36-
}
35+
}
36+
}

packages/tasks-gen/snippets-fixtures/conversational-vlm-stream/0.huggingface.js.hf-inference.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ const stream = client.chatCompletionStream({
1212
content: [
1313
{
1414
type: "text",
15-
text: "Describe this image in one sentence.",
15+
text: "Describe this image in one sentence."
1616
},
1717
{
1818
type: "image_url",
1919
image_url: {
20-
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg",
21-
},
22-
},
23-
],
24-
},
20+
url: "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
21+
}
22+
}
23+
]
24+
}
2525
],
2626
provider: "hf-inference",
2727
max_tokens: 500,
@@ -32,5 +32,5 @@ for await (const chunk of stream) {
3232
const newContent = chunk.choices[0].delta.content;
3333
out += newContent;
3434
console.log(newContent);
35-
}
36-
}
35+
}
36+
}

0 commit comments

Comments
 (0)