@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.
@@ -12657,9 +12657,11 @@ function ChatSession(props) {
12657
12657
  );
12658
12658
  }
12659
12659
  init_IotaContext();
12660
+ init_useTranslation();
12660
12661
  function ModelSelector() {
12661
12662
  const { model, setModel } = useChatSession();
12662
12663
  const context = useIotaContext();
12664
+ const { t } = useTranslation();
12663
12665
  const models = React.useMemo(
12664
12666
  () => context.extensions?.llm?.models ?? [],
12665
12667
  [context.extensions?.llm?.models]
@@ -12690,9 +12692,9 @@ function ModelSelector() {
12690
12692
  return null;
12691
12693
  }
12692
12694
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between px-4 pt-3 pb-1", children: [
12693
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex rounded-lg bg-gray-100 p-0.5 dark:bg-gray-800", children: models.map((m) => {
12695
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex rounded-lg bg-gray-100 p-0.5 dark:bg-gray-800", children: models.map((m, i) => {
12694
12696
  const isActive = m.id === currentModel;
12695
- const isFast = m.label === "Fast";
12697
+ const isFast = i === 0;
12696
12698
  return /* @__PURE__ */ jsxRuntime.jsxs(
12697
12699
  "button",
12698
12700
  {
@@ -12704,7 +12706,7 @@ function ModelSelector() {
12704
12706
  `,
12705
12707
  children: [
12706
12708
  isFast ? /* @__PURE__ */ jsxRuntime.jsx(react.Lightning, { size: 13, weight: "fill" }) : /* @__PURE__ */ jsxRuntime.jsx(react.Brain, { size: 13, weight: "fill" }),
12707
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: m.label })
12709
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: t(m.label) })
12708
12710
  ]
12709
12711
  },
12710
12712
  m.id