Update webapp.py
This commit is contained in:
parent
41eeeed5c1
commit
36a208fd04
@ -1006,6 +1006,10 @@ for(let i=prompt.url_pair.length;i>=0;--i)
|
|||||||
}
|
}
|
||||||
let chatTextRaw =""
|
let chatTextRaw =""
|
||||||
let text_offset = -1;
|
let text_offset = -1;
|
||||||
|
const headers = {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
Authorization: "Bearer '''+ os.environ['GPTKEY'] + r'''",
|
||||||
|
};
|
||||||
let prompt = JSON.parse(document.querySelector("#prompt").textContent);
|
let prompt = JSON.parse(document.querySelector("#prompt").textContent);
|
||||||
|
|
||||||
chatTextRawIntro = "";
|
chatTextRawIntro = "";
|
||||||
@ -1056,10 +1060,6 @@ let prompt = JSON.parse(document.querySelector("#prompt").textContent);
|
|||||||
});
|
});
|
||||||
|
|
||||||
text_offset = -1;
|
text_offset = -1;
|
||||||
const headers = {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
Authorization: "Bearer '''+ os.environ['GPTKEY'] + r'''",
|
|
||||||
};
|
|
||||||
const options = {
|
const options = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: headers,
|
headers: headers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user