@blank-utils/llm 0.4.5 → 0.4.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-UTUSTRC5.js → chunk-NMWUZC4S.js} +16 -16
- package/dist/index.css +10 -13
- package/dist/index.js +1 -1
- package/dist/react/index.css +10 -13
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
|
@@ -1053,48 +1053,48 @@ ${newText}` : newText);
|
|
|
1053
1053
|
className: "w-full min-h-[24px] max-h-[200px] resize-none border-none outline-none bg-transparent text-current text-[13px] font-light font-mono leading-relaxed p-0 m-0 placeholder:text-current placeholder:opacity-30 placeholder:uppercase placeholder:tracking-[0.2em] scrollbar-none"
|
|
1054
1054
|
}
|
|
1055
1055
|
),
|
|
1056
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex
|
|
1057
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-
|
|
1056
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between mt-6", children: [
|
|
1057
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-3 flex-wrap", children: [
|
|
1058
1058
|
modelSelector && /* @__PURE__ */ jsx2("div", { children: modelSelector }),
|
|
1059
1059
|
/* @__PURE__ */ jsxs2(
|
|
1060
1060
|
"button",
|
|
1061
1061
|
{
|
|
1062
1062
|
type: "button",
|
|
1063
|
-
className: "group flex
|
|
1063
|
+
className: "group flex items-center justify-center gap-2 px-4 py-2 rounded border bg-transparent border-current/20 text-current hover:bg-current/5 transition-all duration-300",
|
|
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-
|
|
1068
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1069
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1067
|
+
/* @__PURE__ */ jsx2(Paperclip, { className: "w-[11px] h-[11px] opacity-70 group-hover:opacity-100 transition-opacity", strokeWidth: 1.5 }),
|
|
1068
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ FILE ]" }),
|
|
1069
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u30D5\u30A1\u30A4\u30EB" })
|
|
1070
1070
|
]
|
|
1071
1071
|
}
|
|
1072
1072
|
),
|
|
1073
1073
|
actions
|
|
1074
1074
|
] }),
|
|
1075
|
-
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-
|
|
1075
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-3 flex-wrap", children: isGenerating ? /* @__PURE__ */ jsxs2(
|
|
1076
1076
|
"button",
|
|
1077
1077
|
{
|
|
1078
1078
|
type: "button",
|
|
1079
|
-
className: "group flex
|
|
1079
|
+
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
1080
|
onClick: onStop,
|
|
1081
1081
|
children: [
|
|
1082
|
-
/* @__PURE__ */ jsx2(Square, { className: "w-
|
|
1083
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1084
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1082
|
+
/* @__PURE__ */ jsx2(Square, { className: "w-[11px] h-[11px] opacity-70 group-hover:opacity-100 transition-opacity", strokeWidth: 1.5 }),
|
|
1083
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ STOP ]" }),
|
|
1084
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u505C\u6B62" })
|
|
1085
1085
|
]
|
|
1086
1086
|
}
|
|
1087
1087
|
) : /* @__PURE__ */ jsxs2(
|
|
1088
1088
|
"button",
|
|
1089
1089
|
{
|
|
1090
1090
|
type: "button",
|
|
1091
|
-
className: `group flex
|
|
1091
|
+
className: `group flex items-center justify-center gap-2 px-5 py-2 rounded transition-all duration-300 ${canSend ? theme === "dark" ? "bg-[#fafafa] text-black border hover:opacity-80" : "bg-black text-[#fafafa] border hover:opacity-80" : theme === "dark" ? "bg-[#fafafa]/10 text-[#fafafa]/40 cursor-not-allowed border border-transparent" : "bg-black/10 text-black/40 cursor-not-allowed border border-transparent"}`,
|
|
1092
1092
|
onClick: onSend,
|
|
1093
1093
|
disabled: !canSend,
|
|
1094
1094
|
children: [
|
|
1095
|
-
/* @__PURE__ */ jsx2(Send, { className: "w-
|
|
1096
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1097
|
-
/* @__PURE__ */ jsx2("span", { className: "text-[
|
|
1095
|
+
/* @__PURE__ */ jsx2(Send, { className: "w-[11px] h-[11px] opacity-70 group-hover:opacity-100 transition-opacity", strokeWidth: 1.5 }),
|
|
1096
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[10px] font-bold tracking-[0.2em] uppercase whitespace-nowrap", children: "[ SEND ]" }),
|
|
1097
|
+
/* @__PURE__ */ jsx2("span", { className: "text-[9px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest whitespace-nowrap", children: "\u9001\u4FE1" })
|
|
1098
1098
|
]
|
|
1099
1099
|
}
|
|
1100
1100
|
) })
|
|
@@ -1471,7 +1471,7 @@ ${systemPrompt}` : systemPrompt;
|
|
|
1471
1471
|
onClick: reload,
|
|
1472
1472
|
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
1473
|
children: [
|
|
1474
|
-
/* @__PURE__ */ jsx3(RotateCcw, { className: "w-
|
|
1474
|
+
/* @__PURE__ */ jsx3(RotateCcw, { className: "w-[11px] h-[11px] opacity-70 group-hover:opacity-100 transition-opacity", strokeWidth: 1.5 }),
|
|
1475
1475
|
/* @__PURE__ */ jsx3("span", { className: "text-[11px] font-bold tracking-[0.2em] uppercase", children: "[ REBOOT ]" }),
|
|
1476
1476
|
/* @__PURE__ */ jsx3("span", { className: "text-[10px] opacity-40 group-hover:opacity-60 transition-opacity tracking-widest", children: "\u518D\u8D77\u52D5" })
|
|
1477
1477
|
]
|
package/dist/index.css
CHANGED
|
@@ -2272,9 +2272,6 @@ video {
|
|
|
2272
2272
|
.mt-6 {
|
|
2273
2273
|
margin-top: 1.5rem;
|
|
2274
2274
|
}
|
|
2275
|
-
.mt-8 {
|
|
2276
|
-
margin-top: 2rem;
|
|
2277
|
-
}
|
|
2278
2275
|
.block {
|
|
2279
2276
|
display: block;
|
|
2280
2277
|
}
|
|
@@ -2322,6 +2319,9 @@ video {
|
|
|
2322
2319
|
.h-8 {
|
|
2323
2320
|
height: 2rem;
|
|
2324
2321
|
}
|
|
2322
|
+
.h-\[11px\] {
|
|
2323
|
+
height: 11px;
|
|
2324
|
+
}
|
|
2325
2325
|
.h-\[1px\] {
|
|
2326
2326
|
height: 1px;
|
|
2327
2327
|
}
|
|
@@ -2367,6 +2367,9 @@ video {
|
|
|
2367
2367
|
.w-8 {
|
|
2368
2368
|
width: 2rem;
|
|
2369
2369
|
}
|
|
2370
|
+
.w-\[11px\] {
|
|
2371
|
+
width: 11px;
|
|
2372
|
+
}
|
|
2370
2373
|
.w-full {
|
|
2371
2374
|
width: 100%;
|
|
2372
2375
|
}
|
|
@@ -2691,14 +2694,14 @@ video {
|
|
|
2691
2694
|
padding-left: 1rem;
|
|
2692
2695
|
padding-right: 1rem;
|
|
2693
2696
|
}
|
|
2697
|
+
.px-5 {
|
|
2698
|
+
padding-left: 1.25rem;
|
|
2699
|
+
padding-right: 1.25rem;
|
|
2700
|
+
}
|
|
2694
2701
|
.px-6 {
|
|
2695
2702
|
padding-left: 1.5rem;
|
|
2696
2703
|
padding-right: 1.5rem;
|
|
2697
2704
|
}
|
|
2698
|
-
.px-8 {
|
|
2699
|
-
padding-left: 2rem;
|
|
2700
|
-
padding-right: 2rem;
|
|
2701
|
-
}
|
|
2702
2705
|
.py-0\.5 {
|
|
2703
2706
|
padding-top: 0.125rem;
|
|
2704
2707
|
padding-bottom: 0.125rem;
|
|
@@ -3173,12 +3176,6 @@ video {
|
|
|
3173
3176
|
margin-left: 2rem;
|
|
3174
3177
|
margin-right: 2rem;
|
|
3175
3178
|
}
|
|
3176
|
-
.md\:w-auto {
|
|
3177
|
-
width: auto;
|
|
3178
|
-
}
|
|
3179
|
-
.md\:flex-none {
|
|
3180
|
-
flex: none;
|
|
3181
|
-
}
|
|
3182
3179
|
.md\:flex-row {
|
|
3183
3180
|
flex-direction: row;
|
|
3184
3181
|
}
|
package/dist/index.js
CHANGED
package/dist/react/index.css
CHANGED
|
@@ -2272,9 +2272,6 @@ video {
|
|
|
2272
2272
|
.mt-6 {
|
|
2273
2273
|
margin-top: 1.5rem;
|
|
2274
2274
|
}
|
|
2275
|
-
.mt-8 {
|
|
2276
|
-
margin-top: 2rem;
|
|
2277
|
-
}
|
|
2278
2275
|
.block {
|
|
2279
2276
|
display: block;
|
|
2280
2277
|
}
|
|
@@ -2322,6 +2319,9 @@ video {
|
|
|
2322
2319
|
.h-8 {
|
|
2323
2320
|
height: 2rem;
|
|
2324
2321
|
}
|
|
2322
|
+
.h-\[11px\] {
|
|
2323
|
+
height: 11px;
|
|
2324
|
+
}
|
|
2325
2325
|
.h-\[1px\] {
|
|
2326
2326
|
height: 1px;
|
|
2327
2327
|
}
|
|
@@ -2367,6 +2367,9 @@ video {
|
|
|
2367
2367
|
.w-8 {
|
|
2368
2368
|
width: 2rem;
|
|
2369
2369
|
}
|
|
2370
|
+
.w-\[11px\] {
|
|
2371
|
+
width: 11px;
|
|
2372
|
+
}
|
|
2370
2373
|
.w-full {
|
|
2371
2374
|
width: 100%;
|
|
2372
2375
|
}
|
|
@@ -2691,14 +2694,14 @@ video {
|
|
|
2691
2694
|
padding-left: 1rem;
|
|
2692
2695
|
padding-right: 1rem;
|
|
2693
2696
|
}
|
|
2697
|
+
.px-5 {
|
|
2698
|
+
padding-left: 1.25rem;
|
|
2699
|
+
padding-right: 1.25rem;
|
|
2700
|
+
}
|
|
2694
2701
|
.px-6 {
|
|
2695
2702
|
padding-left: 1.5rem;
|
|
2696
2703
|
padding-right: 1.5rem;
|
|
2697
2704
|
}
|
|
2698
|
-
.px-8 {
|
|
2699
|
-
padding-left: 2rem;
|
|
2700
|
-
padding-right: 2rem;
|
|
2701
|
-
}
|
|
2702
2705
|
.py-0\.5 {
|
|
2703
2706
|
padding-top: 0.125rem;
|
|
2704
2707
|
padding-bottom: 0.125rem;
|
|
@@ -3173,12 +3176,6 @@ video {
|
|
|
3173
3176
|
margin-left: 2rem;
|
|
3174
3177
|
margin-right: 2rem;
|
|
3175
3178
|
}
|
|
3176
|
-
.md\:w-auto {
|
|
3177
|
-
width: auto;
|
|
3178
|
-
}
|
|
3179
|
-
.md\:flex-none {
|
|
3180
|
-
flex: none;
|
|
3181
|
-
}
|
|
3182
3179
|
.md\:flex-row {
|
|
3183
3180
|
flex-direction: row;
|
|
3184
3181
|
}
|
package/dist/react/index.js
CHANGED
package/package.json
CHANGED