2 Commits

2 changed files with 2 additions and 0 deletions
+1
View File
@@ -177,6 +177,7 @@ def chat() -> dict[str, any]:
url = url_server
headers = get_auth_headers(url)
logger.debug(f"Sending request to:\n\turl:\t{url}\nmodel:\n\t{model}")
try:
url = url + "/api/generate"
logger.debug(f"url: {url} headers: {headers}")
+1
View File
@@ -25,6 +25,7 @@ const frontendApi = {
fetch(window.apiEndpoint, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
// body: JSON.stringify({ query }), // Add these parameters here
body: JSON.stringify({ query, model: window.useModel }), // Add these parameters here
})
.then(response => response.json())