mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-19 23:13:36 -04:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fdd4a4ef08 | |||
| e2a26d4088 |
@@ -31,14 +31,18 @@ function createParser(
|
||||
};
|
||||
data.append(message);
|
||||
} else {
|
||||
data.append({}); // send an empty image response for the user's message
|
||||
if (process.env.MODEL === "gpt-4-vision-preview") {
|
||||
data.append({}); // send an empty image response for the user's message
|
||||
}
|
||||
}
|
||||
},
|
||||
async pull(controller): Promise<void> {
|
||||
const { value, done } = await it.next();
|
||||
if (done) {
|
||||
controller.close();
|
||||
data.append({}); // send an empty image response for the assistant's message
|
||||
if (process.env.MODEL === "gpt-4-vision-preview") {
|
||||
data.append({}); // send an empty image response for the user's message
|
||||
}
|
||||
data.close();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -31,14 +31,18 @@ function createParser(
|
||||
};
|
||||
data.append(message);
|
||||
} else {
|
||||
data.append({}); // send an empty image response for the user's message
|
||||
if (process.env.MODEL === "gpt-4-vision-preview") {
|
||||
data.append({}); // send an empty image response for the user's message
|
||||
}
|
||||
}
|
||||
},
|
||||
async pull(controller): Promise<void> {
|
||||
const { value, done } = await it.next();
|
||||
if (done) {
|
||||
controller.close();
|
||||
data.append({}); // send an empty image response for the assistant's message
|
||||
if (process.env.MODEL === "gpt-4-vision-preview") {
|
||||
data.append({}); // send an empty image response for the user's message
|
||||
}
|
||||
data.close();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user