mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-03-12 21:22:57 -07:00
a
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
const loadingBubble = addMsg("", "ht-ai");
|
const loadingBubble = addMsg("", "ht-ai");
|
||||||
loadingBubble.innerHTML = LOADER_HTML;
|
loadingBubble.innerHTML = LOADER_HTML;
|
||||||
|
|
||||||
const content = context ? `Context:\n${context}\n\nQuestion:\n${question}` : question;
|
const content = context ? `### Context:\n${context}\n\n### Question to answer:\n${question}` : question;
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`${API_BASE}/${threadId}/messages`, { method:"POST", credentials:"include", headers:{"Content-Type":"application/json"}, body:JSON.stringify({content}) });
|
const res = await fetch(`${API_BASE}/${threadId}/messages`, { method:"POST", credentials:"include", headers:{"Content-Type":"application/json"}, body:JSON.stringify({content}) });
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user