Merge pull request #157 from ollama-webui/dev

fix: openai models messages
This commit is contained in:
Timothy Jaeryang Baek authored and GitHub committed 2023-11-28 16:27:55 -05:00
commit b3da9b0063
2 files changed
+4

No files matched your search

+2
View File
@@ -238,6 +238,8 @@
]; ];
} }
await tick();
window.scrollTo({ top: document.body.scrollHeight }); window.scrollTo({ top: document.body.scrollHeight });
const res = await fetch(`https://api.openai.com/v1/chat/completions`, { const res = await fetch(`https://api.openai.com/v1/chat/completions`, {
+2
View File
@@ -273,6 +273,8 @@
]; ];
} }
await tick();
window.scrollTo({ top: document.body.scrollHeight }); window.scrollTo({ top: document.body.scrollHeight });
const res = await fetch(`https://api.openai.com/v1/chat/completions`, { const res = await fetch(`https://api.openai.com/v1/chat/completions`, {