From ea4b13131027a57e2454ac76b3f52e2af0a29dc2 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 4 Feb 2024 16:53:16 +0800 Subject: [PATCH] updated lite --- klite.embd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/klite.embd b/klite.embd index 5cb1b2a4a..edcc86e47 100644 --- a/klite.embd +++ b/klite.embd @@ -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);