diff --git a/front/lib/api/assistant/generation.ts b/front/lib/api/assistant/generation.ts index 30371ba3dd7a..7978d86435be 100644 --- a/front/lib/api/assistant/generation.ts +++ b/front/lib/api/assistant/generation.ts @@ -452,7 +452,12 @@ export async function constructPromptMultiActions( (action) => isVisualizationConfiguration(action) ); if (needVisualizationMetaPrompt) { - additionalInstructions += `If mermaid is asked for a graph you can proceed. Otherwise to generate graphs only call the visualization tool. It takes care of writing and rendering the graph above your message.\nNever repeat the generated code to the user.\nIf asked to manipulate CSV files, you can use the tool to generate the code and then use the code in the tool to manipulate the CSV file.\n`; + additionalInstructions += + `If mermaid is asked for a graph you can proceed. Otherwise to generate graphs only call the visualization tool. ` + + `It takes care of writing and rendering the graph.\n` + + `Never repeat the generated code to the user.\n` + + `If asked to manipulate CSV files, you can use the tool to generate the code and then use the code in the tool to manipulate the CSV file.\n` + + `Unless explictly asked, never explain the code generated in tags`; } const providerMetaPrompt = model.metaPrompt; diff --git a/types/src/front/lib/actions/registry.ts b/types/src/front/lib/actions/registry.ts index 8628c1aa444d..6d712ab18e00 100644 --- a/types/src/front/lib/actions/registry.ts +++ b/types/src/front/lib/actions/registry.ts @@ -238,7 +238,7 @@ export const DustProdActionRegistry = createActionRegistry({ workspaceId: PRODUCTION_DUST_APPS_WORKSPACE_ID, appId: "tWcuYDj1OE", appHash: - "720fd391bfeb1532f97f4d6ff8bf57f99eef9c56e470c7e3892061de8fb0bd80", + "e404a057516d5d1bb7b1807b74a20484c3f60bf0a36c510cb799127f060f032b", }, config: { MODEL: { diff --git a/viz/app/components/VisualizationWrapper.tsx b/viz/app/components/VisualizationWrapper.tsx index cec54895a3b2..447cd13b618c 100644 --- a/viz/app/components/VisualizationWrapper.tsx +++ b/viz/app/components/VisualizationWrapper.tsx @@ -194,8 +194,8 @@ export function VisualizationWrapper({ actionId }: { actionId: string }) { const { ref } = useResizeDetector({ handleHeight: true, - refreshMode: "throttle", - refreshRate: 1000, + refreshMode: "debounce", + refreshRate: 500, onResize: sendHeightToParent, });