diff --git a/langchain_tools_demo/static/index.js b/langchain_tools_demo/static/index.js index 3c7d8bb4..2f7c6d74 100644 --- a/langchain_tools_demo/static/index.js +++ b/langchain_tools_demo/static/index.js @@ -51,7 +51,7 @@ async function submitMessage() { // Send request to backend async function askQuestion(prompt) { - const response = await fetch('/chat', { + const response = await fetch('chat', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -68,7 +68,7 @@ async function askQuestion(prompt) { } async function reset() { - await fetch('/reset', { + await fetch('reset', { method: 'POST', }).then(()=>{ window.location.reload() diff --git a/langchain_tools_demo/templates/index.html b/langchain_tools_demo/templates/index.html index f9ca6a25..608b374c 100644 --- a/langchain_tools_demo/templates/index.html +++ b/langchain_tools_demo/templates/index.html @@ -28,7 +28,7 @@ - + @@ -80,7 +80,7 @@

SFO Airport Assistant

src="https://code.jquery.com/jquery-3.7.1.slim.min.js" integrity="sha256-kmHvs0B+OpCW5GVHUNjv9rOmY0IvSIRcf7zGUDTDQM8=" crossorigin="anonymous"> - +