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
Refactor Chat API Client for Improved Import Paths and Error Handling
Salman-Ahamedfe1fc2e9a93e
diff --git a/packages/app/src/react/features/ai-chat/clients/chat-api.client.ts b/packages/app/src/react/features/ai-chat/clients/chat-api.client.tsindex 4133ca10..20aff2b4 100644--- a/packages/app/src/react/features/ai-chat/clients/chat-api.client.ts+++ b/packages/app/src/react/features/ai-chat/clients/chat-api.client.ts@@ -10,8 +10,7 @@ import {IStreamCallbacks,IStreamChunk,IStreamConfig,- TErrorType,-} from '../types/chat.types';+} from '@react/features/ai-chat/types/chat.types';import {createThinkingManager,extractFunctionName,@@ -19,7 +18,7 @@ import {formatStatusMessage,processStreamChunk,splitJSONStream,-} from '../utils/stream.utils';+} from '@react/features/ai-chat/utils/stream.utils';/*** Default configuration for the Chat API Client@@ -265,7 +264,7 @@ export class ChatAPIClient {if (processed.hasError) {const error: IChatError = {message: processed.error || 'Unknown error occurred',- type: (processed.errorType as TErrorType) || 'stream',+ type: 'stream',};onError(error);return;