diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index fee723c00..14cb72ce5 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -238,6 +238,8 @@ ]; } + await tick(); + window.scrollTo({ top: document.body.scrollHeight }); const res = await fetch(`https://api.openai.com/v1/chat/completions`, { diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index d1b68e527..daf0f7934 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -273,6 +273,8 @@ ]; } + await tick(); + window.scrollTo({ top: document.body.scrollHeight }); const res = await fetch(`https://api.openai.com/v1/chat/completions`, {