Skip to content

Commit

Permalink
updated lite
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Feb 4, 2024
1 parent 4cb956c commit ea4b131
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions klite.embd
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ea4b131

Please sign in to comment.