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.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Enhance error message handling in ErrorMessageBubble component to improve API key error detection. Updated logic to ensure accurate identification of 401 errors related to API keys by refining string checks.
Salman-Ahamed9c93d130df29
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.tsxindex 9984c017..8275bb8c 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@@ -224,9 +224,12 @@ const ErrorMessageBubble: FC<{isRetrying?: boolean;}> = ({ message, onRetryClick, isRetrying }) => {// Check if this is a 401 API key error+const isApiKeyError =message.includes('Incorrect API key provided') ||- (message.includes('401') && message.toLowerCase().includes('api key'));+ (message.includes('401') &&+ message.toLowerCase().includes('api') &&+ message.toLocaleLowerCase().includes('key'));return (<div className="flex flex-col items-start">