@blank-utils/llm 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-NDXKOAAG.js → chunk-D66WXG2F.js} +2 -2
- package/dist/index.css +1989 -1
- package/dist/index.js +1 -1
- package/dist/react/index.css +1989 -1
- package/dist/react/index.js +1 -1
- package/package.json +5 -1
|
@@ -1272,7 +1272,7 @@ function Chat({
|
|
|
1272
1272
|
}
|
|
1273
1273
|
currentMessages.forEach((m) => {
|
|
1274
1274
|
let content = m.content;
|
|
1275
|
-
if (m.role === "user" && m.images && m.images.length > 0) {
|
|
1275
|
+
if (m.role === "user" && m.images && m.images.length > 0 && isVisionModel2(modelId || "")) {
|
|
1276
1276
|
if (llm.backend === "webllm") {
|
|
1277
1277
|
content = [
|
|
1278
1278
|
{ type: "text", text: m.content },
|
|
@@ -1288,7 +1288,7 @@ function Chat({
|
|
|
1288
1288
|
apiMessages.push({ role: m.role, content });
|
|
1289
1289
|
});
|
|
1290
1290
|
let finalUserContent = userContent;
|
|
1291
|
-
if (attachedImages.length > 0) {
|
|
1291
|
+
if (attachedImages.length > 0 && isVisionModel2(modelId || "")) {
|
|
1292
1292
|
if (llm.backend === "webllm") {
|
|
1293
1293
|
finalUserContent = [
|
|
1294
1294
|
{ type: "text", text: userContent },
|