updated lite

This commit is contained in:
Concedo
2024-02-04 16:53:16 +08:00
parent 4cb956c7db
commit ea4b131310
+8
View File
@@ -6320,6 +6320,14 @@ Current version: 109
.then((response) => response.json())
.then((data) => {
console.log(data);
//hack for together.xyz
if(data!=null && data.data==null && data.length>0 && data[0] && data[0].id && data[0].id!="")
{
console.log("together.xyz workaround hack");
data = { "data": data }; //fix for their bad format
}
if (!data.error && data.data && data.data.length > 0)
{
let isOpenrouter = (document.getElementById("customapidropdown").value==5);