From 7de541fe67b0cdc99dc6d5f2d1dfce1c3258fed8 Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Fri, 12 Dec 2025 17:52:11 +0530 Subject: [PATCH 1/5] default agent job indentation fix --- .../client/src/pages/apps/[appId]/agents/CreateAgentDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wavefront/client/src/pages/apps/[appId]/agents/CreateAgentDialog.tsx b/wavefront/client/src/pages/apps/[appId]/agents/CreateAgentDialog.tsx index 717c7ae4..b003f582 100644 --- a/wavefront/client/src/pages/apps/[appId]/agents/CreateAgentDialog.tsx +++ b/wavefront/client/src/pages/apps/[appId]/agents/CreateAgentDialog.tsx @@ -44,7 +44,7 @@ agent: name: gemini-2.5-flash settings: temperature: 0.7 -job: You are a translator. Use this tone + job: You are a translator. Use this tone `; interface CreateAgentDialogProps { From 595a6612afe14294b15a20fb9af850158631821d Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Fri, 12 Dec 2025 18:06:21 +0530 Subject: [PATCH 2/5] removed cartesia emotion --- wavefront/client/src/config/voice-providers.ts | 6 ------ wavefront/client/src/types/tts-config.ts | 1 - 2 files changed, 7 deletions(-) diff --git a/wavefront/client/src/config/voice-providers.ts b/wavefront/client/src/config/voice-providers.ts index 650cae29..af9c679d 100644 --- a/wavefront/client/src/config/voice-providers.ts +++ b/wavefront/client/src/config/voice-providers.ts @@ -157,12 +157,6 @@ export const VOICE_PROVIDERS_CONFIG: VoiceProvidersConfig = { placeholder: '1.0', step: 0.1, }, - emotion: { - type: 'array', - default: [], - description: 'Comma-separated emotion tags', - placeholder: 'happy, excited', - }, }, }, }, diff --git a/wavefront/client/src/types/tts-config.ts b/wavefront/client/src/types/tts-config.ts index be0f0881..f7d16efd 100644 --- a/wavefront/client/src/types/tts-config.ts +++ b/wavefront/client/src/types/tts-config.ts @@ -71,5 +71,4 @@ export interface CartesiaParameters { model?: string; // default: 'sonic-2' language?: string; // Language enum speed?: number; - emotion?: string[]; } From 7f883747e0101412bf8c7947cecbef58ae2af83f Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Fri, 12 Dec 2025 18:06:58 +0530 Subject: [PATCH 3/5] removed max_tokens param from openai --- wavefront/client/src/config/llm-providers.ts | 33 ++------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/wavefront/client/src/config/llm-providers.ts b/wavefront/client/src/config/llm-providers.ts index 028d4793..6e78ca5e 100644 --- a/wavefront/client/src/config/llm-providers.ts +++ b/wavefront/client/src/config/llm-providers.ts @@ -50,22 +50,13 @@ export const LLM_PROVIDERS_CONFIG: Record = description: 'Controls randomness in responses (0-2)', placeholder: '0.7', }, - max_tokens: { - type: 'number', - default: 150, - min: 1, - max: 16000, - step: 1, - description: 'Maximum number of tokens to generate', - placeholder: '150', - }, max_completion_tokens: { type: 'number', default: undefined, min: 1, max: 16000, step: 1, - description: 'Maximum completion tokens (alternative to max_tokens)', + description: 'Maximum completion tokens', placeholder: '1000', }, top_p: { @@ -221,22 +212,13 @@ export const LLM_PROVIDERS_CONFIG: Record = description: 'Controls randomness in responses (0-2)', placeholder: '0.7', }, - max_tokens: { - type: 'number', - default: 150, - min: 1, - max: 16000, - step: 1, - description: 'Maximum number of tokens to generate', - placeholder: '150', - }, max_completion_tokens: { type: 'number', default: undefined, min: 1, max: 16000, step: 1, - description: 'Maximum completion tokens (alternative to max_tokens)', + description: 'Maximum completion tokens', placeholder: '1000', }, top_p: { @@ -293,22 +275,13 @@ export const LLM_PROVIDERS_CONFIG: Record = description: 'Controls randomness in responses (0-2)', placeholder: '0.7', }, - max_tokens: { - type: 'number', - default: 150, - min: 1, - max: 8000, - step: 1, - description: 'Maximum number of tokens to generate', - placeholder: '150', - }, max_completion_tokens: { type: 'number', default: undefined, min: 1, max: 8000, step: 1, - description: 'Maximum completion tokens (alternative to max_tokens)', + description: 'Maximum completion tokens', placeholder: '1000', }, top_p: { From 6d8d9652c629ad362038827c04746f7c94c68a61 Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Fri, 12 Dec 2025 18:29:32 +0530 Subject: [PATCH 4/5] toast for error/success message --- wavefront/client/src/App.tsx | 5 +- .../client/src/assets/icons/toast-icons.tsx | 47 +++++++++++++ wavefront/client/src/components/ui/toast.tsx | 67 +++++++++++++++++++ .../client/src/store/notification-store.ts | 2 +- 4 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 wavefront/client/src/assets/icons/toast-icons.tsx create mode 100644 wavefront/client/src/components/ui/toast.tsx diff --git a/wavefront/client/src/App.tsx b/wavefront/client/src/App.tsx index 083750d2..96470dba 100644 --- a/wavefront/client/src/App.tsx +++ b/wavefront/client/src/App.tsx @@ -1,10 +1,12 @@ import { TOKEN_KEY } from "@app/lib/constants"; import { useEffect } from "react"; import AppRouter from "./router"; -import { useAuthStore } from "./store"; +import { useAuthStore, useNotifyStore } from "./store"; +import Toast from "./components/ui/toast"; function App() { const { setAuthenticatedState } = useAuthStore(); + const { visible, reset, type, message } = useNotifyStore(); useEffect(() => { const token = localStorage.getItem(TOKEN_KEY); @@ -15,6 +17,7 @@ function App() { return (
+
); } diff --git a/wavefront/client/src/assets/icons/toast-icons.tsx b/wavefront/client/src/assets/icons/toast-icons.tsx new file mode 100644 index 00000000..cc1c6c39 --- /dev/null +++ b/wavefront/client/src/assets/icons/toast-icons.tsx @@ -0,0 +1,47 @@ +export const ToastSuccessIcon = () => { + return ( +
+ +
+ ); +}; + +export const ToastErrorIcon = () => { + return ( +
+ +
+ ); +}; + +export const ToastWarningIcon = () => { + return ( +
+ +
+ ); +}; diff --git a/wavefront/client/src/components/ui/toast.tsx b/wavefront/client/src/components/ui/toast.tsx new file mode 100644 index 00000000..e77a1ea1 --- /dev/null +++ b/wavefront/client/src/components/ui/toast.tsx @@ -0,0 +1,67 @@ +import { TToastType } from '@app/store'; +import { ToastErrorIcon, ToastSuccessIcon, ToastWarningIcon } from '@app/assets/icons/toast-icons'; +import { useEffect } from 'react'; + +const iconMap = { + success: , + error: , + warning: , +}; + +const Toast = ({ + visible, + reset, + type, + message, + timeout = 3000, +}: { + visible: boolean; + reset: () => void; + type: TToastType; + message: string; + timeout?: number; +}) => { + useEffect(() => { + if (visible) setTimeout(reset, timeout); + }, [visible]); + + if (!visible) return <>; + + return ( + <> +
+ {type && iconMap[type]} +
{message}
+ +
+ + ); +}; + +export default Toast; diff --git a/wavefront/client/src/store/notification-store.ts b/wavefront/client/src/store/notification-store.ts index 7699d4b6..5f85e818 100644 --- a/wavefront/client/src/store/notification-store.ts +++ b/wavefront/client/src/store/notification-store.ts @@ -1,6 +1,6 @@ import { create } from "zustand"; -type TToastType = "success" | "error" | "warning" | null; +export type TToastType = "success" | "error" | "warning" | null; type State = { visible: boolean; From 6d01ac0b01e7640744b450cab3eb7e2978e02aed Mon Sep 17 00:00:00 2001 From: rootflo-hardik Date: Sat, 13 Dec 2025 13:29:22 +0530 Subject: [PATCH 5/5] kb config id initial value fix --- .../src/pages/apps/[appId]/knowledge-bases/[kbId]/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wavefront/client/src/pages/apps/[appId]/knowledge-bases/[kbId]/index.tsx b/wavefront/client/src/pages/apps/[appId]/knowledge-bases/[kbId]/index.tsx index 2b0c275b..48506a1d 100644 --- a/wavefront/client/src/pages/apps/[appId]/knowledge-bases/[kbId]/index.tsx +++ b/wavefront/client/src/pages/apps/[appId]/knowledge-bases/[kbId]/index.tsx @@ -53,7 +53,7 @@ const KnowledgeBaseDetailPage: React.FC = () => { // Create System Prompt Dialog state const [showCreatePromptModal, setShowCreatePromptModal] = useState(false); const [systemPrompt, setSystemPrompt] = useState(''); - const [selectedConfigId, setSelectedConfigId] = useState(''); + const [selectedConfigId, setSelectedConfigId] = useState(undefined); const [creatingPrompt, setCreatingPrompt] = useState(false); // Test Inference Dialog state @@ -147,7 +147,7 @@ const KnowledgeBaseDetailPage: React.FC = () => { queryClient.invalidateQueries({ queryKey: getKnowledgeBaseInferencesKey(appId || '', kbId || '') }); setShowCreatePromptModal(false); setSystemPrompt(''); - setSelectedConfigId(''); + setSelectedConfigId(undefined); } else { notifyError('Failed to create system prompt.'); } @@ -162,7 +162,7 @@ const KnowledgeBaseDetailPage: React.FC = () => { const handleCloseCreatePromptModal = () => { setShowCreatePromptModal(false); setSystemPrompt(''); - setSelectedConfigId(''); + setSelectedConfigId(undefined); }; const handleOpenTestInference = (inferenceId: string) => {