SimpleChat: Allow Authorization header to be set by end user
This commit is contained in:
parent
c9559d2b26
commit
af342b3bd0
1 changed files with 7 additions and 0 deletions
|
@ -728,6 +728,8 @@ class Me {
|
|||
|
||||
ui.el_create_append_p(`baseURL:${this.baseURL}`, elDiv);
|
||||
|
||||
ui.el_create_append_p(`Authorization:${this.headers["Authorization"]}`, elDiv);
|
||||
|
||||
ui.el_create_append_p(`bStream:${this.bStream}`, elDiv);
|
||||
|
||||
ui.el_create_append_p(`bCompletionFreshChatAlways:${this.bCompletionFreshChatAlways}`, elDiv);
|
||||
|
@ -755,6 +757,11 @@ class Me {
|
|||
});
|
||||
elDiv.appendChild(inp);
|
||||
|
||||
inp = ui.el_creatediv_input("SetAuthorization", "Authorization", "text", this.headers["Authorization"], (val)=>{
|
||||
this.headers["Authorization"] = val;
|
||||
});
|
||||
elDiv.appendChild(inp);
|
||||
|
||||
let bb = ui.el_creatediv_boolbutton("SetStream", "Stream", {true: "[+] yes stream", false: "[-] do oneshot"}, this.bStream, (val)=>{
|
||||
this.bStream = val;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue