fix: use relative path for api

This commit is contained in:
SouthFox 2024-08-13 00:46:55 +08:00
parent b00cdb6b10
commit f06d8c80ea

View file

@ -37,7 +37,7 @@ async function sendMessage() {
async function generateText(prompt) { async function generateText(prompt) {
try { try {
const response = await fetch("/generate_text_stream", { const response = await fetch("./generate_text_stream", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",