mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
update lite, remove aetherroom dead site
This commit is contained in:
-68
@@ -7775,74 +7775,6 @@ Current version indicated by LITEVER below.
|
||||
* }[]}
|
||||
**/
|
||||
const scenario_sources = [
|
||||
// Aetherroom.club
|
||||
{
|
||||
name: "aetherroom.club",
|
||||
urlParam: "aether",
|
||||
inputBox: {
|
||||
text: "Enter aetherroom.club prompt URL, or 4-digit prompt number",
|
||||
placeholder: "https://aetherroom.club/1234"
|
||||
},
|
||||
extraction: (userInput) => {
|
||||
userInput = userInput.toLowerCase();
|
||||
if (userInput.includes("aetherroom.club/")) {
|
||||
//is a url, extract the ID
|
||||
userInput = userInput.replace("/api/","/");
|
||||
userInput = userInput.split("aetherroom.club/")[1];
|
||||
userInput = userInput.split("/")[0];
|
||||
userInput = userInput.split("#")[0];
|
||||
userInput = userInput.split("?")[0];
|
||||
}
|
||||
if(!(userInput!="" && is_numeric(userInput) && userInput>0 && userInput<50000))
|
||||
throw new Error("User input is invalid\n\n Please ensure you have input a valid aetherroom.club URL or ID (e.g. https://aetherroom.club/1234 or just 1234)");
|
||||
return userInput;
|
||||
},
|
||||
fetch: (userInput) => {
|
||||
return fetch(apply_proxy_url("https://aetherroom.club/api/"+userInput,true))
|
||||
.then(x => x.json())
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
temp_scenario =
|
||||
{
|
||||
"title":data.title?data.title:"",
|
||||
"desc":data.description?data.description:"",
|
||||
"opmode":2,
|
||||
"adventure_context_mod":false,
|
||||
"adventure_switch_mode":1,
|
||||
"prompt":data.promptContent?data.promptContent:"",
|
||||
"memory": data.memory?data.memory:"",
|
||||
"authorsnote": data.authorsNote?data.authorsNote:"",
|
||||
"worldinfo": []
|
||||
};
|
||||
if (data.worldInfos)
|
||||
{
|
||||
for (let w = 0; w < data.worldInfos.length; ++w) {
|
||||
let keys = data.worldInfos[w].keys;
|
||||
let entry = data.worldInfos[w].entry;
|
||||
|
||||
let nwi = {
|
||||
"key": (keys ? keys : ""),
|
||||
"keysecondary": "",
|
||||
"keyanti": "",
|
||||
"content": (entry ? entry : ""),
|
||||
"comment": "",
|
||||
"folder": null,
|
||||
"selective": false,
|
||||
"constant": false,
|
||||
"probability":100,
|
||||
"wigroup":"",
|
||||
"widisabled":false
|
||||
};
|
||||
temp_scenario.worldinfo.push(nwi);
|
||||
}
|
||||
}
|
||||
preview_temp_scenario();
|
||||
}).catch((error) => {
|
||||
console.error(error);
|
||||
throw new Error("Error: Selected scenario is invalid.");
|
||||
});
|
||||
}
|
||||
},
|
||||
// Chub.ai
|
||||
{
|
||||
name: "characterhub.org / chub.ai",
|
||||
|
||||
Reference in New Issue
Block a user