From 65ee8189b4e3dba5a4f7a682b80c7b6e2a0c45f9 Mon Sep 17 00:00:00 2001 From: tombii Date: Tue, 18 Feb 2025 15:08:07 +0100 Subject: [PATCH 1/2] Update utils.py Together.ai will add id, model and object to the response. --- litellm/types/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 822f55e6fa..ba7823021f 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -1350,6 +1350,9 @@ class ImageResponse(OpenAIImageResponse): response_ms=None, usage: Optional[Usage] = None, hidden_params: Optional[dict] = None, + id: Optional[str] = None, + model: Optional[str] = None, + object: Optional[str] = None, ): if response_ms: _response_ms = response_ms From 6e9a19ccc6927bfac2c27cb79c946b3c3340d712 Mon Sep 17 00:00:00 2001 From: tombii Date: Mon, 14 Apr 2025 10:57:57 +0200 Subject: [PATCH 2/2] Update networking.tsx Updated to send the user to /ui/ to login again instead of sending user to /. --- ui/litellm-dashboard/src/components/networking.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsx index 87ba0540e5..65470f193f 100644 --- a/ui/litellm-dashboard/src/components/networking.tsx +++ b/ui/litellm-dashboard/src/components/networking.tsx @@ -69,7 +69,7 @@ const handleError = async (errorData: string) => { lastErrorTime = currentTime; await sleep(3000); // 5 second sleep document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; - window.location.href = baseUrl; + window.location.href = baseUrl + "ui/"; } lastErrorTime = currentTime; } else { @@ -4486,4 +4486,4 @@ export const teamPermissionsUpdateCall = async ( console.error("Failed to update team permissions:", error); throw error; } -}; \ No newline at end of file +};