@blank-utils/llm 0.4.6 → 0.4.8
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.
|
@@ -894,7 +894,7 @@ import { useRef as useRef3, useEffect as useEffect3, useState as useState3, useM
|
|
|
894
894
|
// src/react/chat-input.tsx
|
|
895
895
|
import "react";
|
|
896
896
|
import { useRef as useRef2, useEffect as useEffect2, useCallback as useCallback2, useState as useState2 } from "react";
|
|
897
|
-
import
|
|
897
|
+
import "lucide-react";
|
|
898
898
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
899
899
|
function ChatInput({
|
|
900
900
|
value,
|
|
@@ -1064,7 +1064,6 @@ ${newText}` : newText);
|
|
|
1064
1064
|
onClick: () => fileInputRef.current?.click(),
|
|
1065
1065
|
title: "Attach image or PDF (Ctrl+V to paste)",
|
|
1066
1066
|
children: [
|
|
1067
|
-
/* @__PURE__ */ jsx2(Paperclip, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1068
1067
|
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ FILE ]" }),
|
|
1069
1068
|
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u30D5\u30A1\u30A4\u30EB" })
|
|
1070
1069
|
]
|
|
@@ -1079,7 +1078,6 @@ ${newText}` : newText);
|
|
|
1079
1078
|
className: "group flex items-center justify-center gap-2 px-4 py-2 rounded border bg-red-500/10 border-red-500/30 text-red-500 hover:bg-red-500/20 transition-all duration-300",
|
|
1080
1079
|
onClick: onStop,
|
|
1081
1080
|
children: [
|
|
1082
|
-
/* @__PURE__ */ jsx2(Square, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1083
1081
|
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ STOP ]" }),
|
|
1084
1082
|
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u505C\u6B62" })
|
|
1085
1083
|
]
|
|
@@ -1092,7 +1090,6 @@ ${newText}` : newText);
|
|
|
1092
1090
|
onClick: onSend,
|
|
1093
1091
|
disabled: !canSend,
|
|
1094
1092
|
children: [
|
|
1095
|
-
/* @__PURE__ */ jsx2(Send, { className: "w-3.5 h-3.5 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1096
1093
|
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ SEND ]" }),
|
|
1097
1094
|
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u9001\u4FE1" })
|
|
1098
1095
|
]
|
|
@@ -1105,7 +1102,7 @@ ${newText}` : newText);
|
|
|
1105
1102
|
}
|
|
1106
1103
|
|
|
1107
1104
|
// src/react/components.tsx
|
|
1108
|
-
import {
|
|
1105
|
+
import { AlertCircle } from "lucide-react";
|
|
1109
1106
|
import { clsx } from "clsx";
|
|
1110
1107
|
import { twMerge } from "tailwind-merge";
|
|
1111
1108
|
import { Streamdown, parseMarkdownIntoBlocks } from "streamdown";
|
|
@@ -1471,7 +1468,6 @@ ${systemPrompt}` : systemPrompt;
|
|
|
1471
1468
|
onClick: reload,
|
|
1472
1469
|
className: "group flex items-center justify-center min-w-max gap-3 px-6 py-3 rounded-md border border-red-500/30 bg-red-500/10 text-red-500 hover:bg-red-500/20 transition-all duration-300",
|
|
1473
1470
|
children: [
|
|
1474
|
-
/* @__PURE__ */ jsx3(RotateCcw, { className: "w-4 h-4 opacity-70 group-hover:opacity-100 transition-opacity" }),
|
|
1475
1471
|
/* @__PURE__ */ jsx3("span", { className: "text-[11px] font-bold tracking-[0.2em] uppercase", children: "[ REBOOT ]" }),
|
|
1476
1472
|
/* @__PURE__ */ jsx3("span", { className: "text-[10px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest", children: "\u518D\u8D77\u52D5" })
|
|
1477
1473
|
]
|
package/dist/index.css
CHANGED
|
@@ -2310,9 +2310,6 @@ video {
|
|
|
2310
2310
|
.h-24 {
|
|
2311
2311
|
height: 6rem;
|
|
2312
2312
|
}
|
|
2313
|
-
.h-3\.5 {
|
|
2314
|
-
height: 0.875rem;
|
|
2315
|
-
}
|
|
2316
2313
|
.h-4 {
|
|
2317
2314
|
height: 1rem;
|
|
2318
2315
|
}
|
|
@@ -2355,9 +2352,6 @@ video {
|
|
|
2355
2352
|
.w-24 {
|
|
2356
2353
|
width: 6rem;
|
|
2357
2354
|
}
|
|
2358
|
-
.w-3\.5 {
|
|
2359
|
-
width: 0.875rem;
|
|
2360
|
-
}
|
|
2361
2355
|
.w-4 {
|
|
2362
2356
|
width: 1rem;
|
|
2363
2357
|
}
|
package/dist/index.js
CHANGED
package/dist/react/index.css
CHANGED
|
@@ -2310,9 +2310,6 @@ video {
|
|
|
2310
2310
|
.h-24 {
|
|
2311
2311
|
height: 6rem;
|
|
2312
2312
|
}
|
|
2313
|
-
.h-3\.5 {
|
|
2314
|
-
height: 0.875rem;
|
|
2315
|
-
}
|
|
2316
2313
|
.h-4 {
|
|
2317
2314
|
height: 1rem;
|
|
2318
2315
|
}
|
|
@@ -2355,9 +2352,6 @@ video {
|
|
|
2355
2352
|
.w-24 {
|
|
2356
2353
|
width: 6rem;
|
|
2357
2354
|
}
|
|
2358
|
-
.w-3\.5 {
|
|
2359
|
-
width: 0.875rem;
|
|
2360
|
-
}
|
|
2361
2355
|
.w-4 {
|
|
2362
2356
|
width: 1rem;
|
|
2363
2357
|
}
|
package/dist/react/index.js
CHANGED
package/package.json
CHANGED