Explorar o código

Merge pull request #157 from ollama-webui/dev

fix: openai models messages
Timothy Jaeryang Baek hai 1 ano
pai
achega
b3da9b0063
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      src/routes/(app)/+page.svelte
  2. 2 0
      src/routes/(app)/c/[id]/+page.svelte

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