Can you please elaborate on how you're copying Svelte's docs into 4o?
I just download the Svelte + SvelteKit (Recommended - LLM Distilled) file from the link mentioned in my original comment and drag-and-drop upload it into the chat context when I'm talking to 4o about coding. Nothing magical. It takes a second to read through the document, but then the LLM works significantly better. It stops suggesting invalid Svelte 4 syntax and prioritizes using Runes.