diff --git a/src/components/ToastTextToCad.tsx b/src/components/ToastTextToCad.tsx index 6ebd5177d4..c4d90babb0 100644 --- a/src/components/ToastTextToCad.tsx +++ b/src/components/ToastTextToCad.tsx @@ -33,12 +33,50 @@ import { EventFrom } from 'xstate' import { fileMachine } from 'machines/fileMachine' import { reportRejection } from 'lib/trap' import { codeManager, kclManager } from 'lib/singletons' +import { openExternalBrowserIfDesktop } from 'lib/openWindow' const CANVAS_SIZE = 128 const PROMPT_TRUNCATE_LENGTH = 128 const FRUSTUM_SIZE = 0.5 const OUTPUT_KEY = 'source.glb' +function TextToCadImprovementMessage({ + label, + ...rest +}: React.HTMLAttributes & { label: string }) { + return ( +
+ + {label} + +

+ Text-to-CAD is a new ML model. There will be prompts that work and + prompts that don't and prompts that generate something a little bit off. + Sometimes even a small tweak to your prompt will make it better on the + next run. Try our prompt-to-edit feature to iterate on your result with + AI. We look at all the failures to make the model better and see our + weaknesses. Over time the model will get better. See our{' '} + + Discord + {' '} + or{' '} + + Discourse + {' '} + or some prompting tips from the community or our team. +

+
+ ) +} + export function ToastTextToCadError({ toastId, message, @@ -286,6 +324,10 @@ export function ToastTextToCadSuccess({ : data.prompt} "

+
+

Do you want to keep the change?