Skip to content

Commit b0e25b3

Browse files
committed
fix lint
1 parent ce2de2d commit b0e25b3

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

templates/types/streaming/express/src/controllers/llamaindex-stream.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@ export const convertMessageContent = (
3939
{
4040
type: "text",
4141
text: textMessage,
42-
}
42+
},
4343
];
4444
if (additionalData?.imageUrl) {
45-
content.push(
46-
{
47-
type: "image_url",
48-
image_url: {
49-
url: additionalData?.imageUrl,
50-
},
51-
});
45+
content.push({
46+
type: "image_url",
47+
image_url: {
48+
url: additionalData?.imageUrl,
49+
},
50+
});
5251
}
5352

5453
if (additionalData?.uploadedCsv) {
@@ -59,7 +58,7 @@ export const convertMessageContent = (
5958
"\n```";
6059
content.push({
6160
type: "text",
62-
text: `${csvContent}\n\n${textMessage}`
61+
text: `${csvContent}\n\n${textMessage}`,
6362
});
6463
}
6564

templates/types/streaming/nextjs/app/api/chat/llamaindex-stream.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,15 @@ export const convertMessageContent = (
3939
{
4040
type: "text",
4141
text: textMessage,
42-
}
42+
},
4343
];
4444
if (additionalData?.imageUrl) {
45-
content.push(
46-
{
47-
type: "image_url",
48-
image_url: {
49-
url: additionalData?.imageUrl,
50-
},
51-
});
45+
content.push({
46+
type: "image_url",
47+
image_url: {
48+
url: additionalData?.imageUrl,
49+
},
50+
});
5251
}
5352

5453
if (additionalData?.uploadedCsv) {
@@ -59,7 +58,7 @@ export const convertMessageContent = (
5958
"\n```";
6059
content.push({
6160
type: "text",
62-
text: `${csvContent}\n\n${textMessage}`
61+
text: `${csvContent}\n\n${textMessage}`,
6362
});
6463
}
6564

0 commit comments

Comments
 (0)