@iota-uz/sdk 0.4.32 → 0.4.33
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/bichat/index.mjs
CHANGED
|
@@ -12645,9 +12645,11 @@ function ChatSession(props) {
|
|
|
12645
12645
|
);
|
|
12646
12646
|
}
|
|
12647
12647
|
init_IotaContext();
|
|
12648
|
+
init_useTranslation();
|
|
12648
12649
|
function ModelSelector() {
|
|
12649
12650
|
const { model, setModel } = useChatSession();
|
|
12650
12651
|
const context = useIotaContext();
|
|
12652
|
+
const { t } = useTranslation();
|
|
12651
12653
|
const models = useMemo(
|
|
12652
12654
|
() => context.extensions?.llm?.models ?? [],
|
|
12653
12655
|
[context.extensions?.llm?.models]
|
|
@@ -12678,9 +12680,9 @@ function ModelSelector() {
|
|
|
12678
12680
|
return null;
|
|
12679
12681
|
}
|
|
12680
12682
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 pt-3 pb-1", children: [
|
|
12681
|
-
/* @__PURE__ */ jsx("div", { className: "inline-flex rounded-lg bg-gray-100 p-0.5 dark:bg-gray-800", children: models.map((m) => {
|
|
12683
|
+
/* @__PURE__ */ jsx("div", { className: "inline-flex rounded-lg bg-gray-100 p-0.5 dark:bg-gray-800", children: models.map((m, i) => {
|
|
12682
12684
|
const isActive = m.id === currentModel;
|
|
12683
|
-
const isFast =
|
|
12685
|
+
const isFast = i === 0;
|
|
12684
12686
|
return /* @__PURE__ */ jsxs(
|
|
12685
12687
|
"button",
|
|
12686
12688
|
{
|
|
@@ -12692,7 +12694,7 @@ function ModelSelector() {
|
|
|
12692
12694
|
`,
|
|
12693
12695
|
children: [
|
|
12694
12696
|
isFast ? /* @__PURE__ */ jsx(Lightning, { size: 13, weight: "fill" }) : /* @__PURE__ */ jsx(Brain, { size: 13, weight: "fill" }),
|
|
12695
|
-
/* @__PURE__ */ jsx("span", { children: m.label })
|
|
12697
|
+
/* @__PURE__ */ jsx("span", { children: t(m.label) })
|
|
12696
12698
|
]
|
|
12697
12699
|
},
|
|
12698
12700
|
m.id
|