Server directory structure and streaming optimization

This commit is contained in:
2025-01-28 01:17:30 +01:00
parent 2674bc6c20
commit 40954e1f52
5 changed files with 176 additions and 153 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ function App() {
(async function() {
setCode('');
const response = await fetch(`${import.meta.env.VITE_API_URL}/generate?lang=java&lines=15`);
const response = await fetch(`${import.meta.env.VITE_API_URL}/generate?lang=lua`);
const reader = response.body.getReader();
const decoder = new TextDecoder();