Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f39e11b10 | |||
| 32098e3452 |
@@ -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}")
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user