Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

store model with lowercase id

Forhad Hosain2962260b9317
diff --git a/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx b/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx
index 949a0205..611af483 100644
--- a/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx
+++ b/packages/app/src/react/features/ai-chat/components/chat-bubble.tsx
@@ -1,10 +1,9 @@
-
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars */
-import { Tooltip } from 'flowbite-react';
-import { FC, useRef, useState } from 'react';
-import { FaCheck, FaRegCopy } from 'react-icons/fa6';
-import ReactMarkdown from 'react-markdown';
-import remarkGfm from 'remark-gfm';
+// import { Tooltip } from 'flowbite-react';
+// import { FC, useRef, useState } from 'react';
+// import { FaCheck, FaRegCopy } from 'react-icons/fa6';
+// import ReactMarkdown from 'react-markdown';
+// import remarkGfm from 'remark-gfm';
import '../styles/index.css';
@@ -22,7 +21,6 @@ import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import '../styles/index.css';
-
const DEFAULT_AVATAR_URL =
'https://gravatar.com/avatar/ccd5b19e810febbfd3d4321e27b15f77?s=400&d=mp&r=x';
diff --git a/packages/app/src/react/features/vault/components/user-models.tsx b/packages/app/src/react/features/vault/components/user-models.tsx
index 296630c3..d426bf04 100644
--- a/packages/app/src/react/features/vault/components/user-models.tsx
+++ b/packages/app/src/react/features/vault/components/user-models.tsx
@@ -67,7 +67,7 @@ function SetupModal({ isOpen, onClose, model, existingKey, isEdit }: SetupModalP
}
addUserModelKey(
- { modelId: model.id, keyName: model.name, apiKey: apiKey.trim() },
+ { modelId: model.id, keyName: model.id, apiKey: apiKey.trim() },
{
onSuccess: () => {
successToast(`API key ${isEdit ? 'updated' : 'added'} successfully`);