Przeglądaj źródła

fix: openai models messages

Timothy J. Baek 1 rok temu
rodzic
commit
6bc10c8794

+ 2 - 0
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`, {

+ 2 - 0
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`, {