Compare commits

...

2 commits

Author SHA1 Message Date
Christian Owusu
b82af5b826
Fix UI Flicker in Dashboard (#10261)
All checks were successful
Read Version from pyproject.toml / read-version (push) Successful in 17s
Helm unit test / unit-test (push) Successful in 24s
2025-04-23 23:27:44 -07:00
Krrish Dholakia
2adb2fc6a5 test: handle service unavailable error 2025-04-23 22:10:46 -07:00
2 changed files with 4 additions and 2 deletions

View file

@ -947,6 +947,8 @@ class BaseLLMChatTest(ABC):
second_response.choices[0].message.content is not None
or second_response.choices[0].message.tool_calls is not None
)
except litellm.ServiceUnavailableError:
pytest.skip("Model is overloaded")
except litellm.InternalServerError:
pytest.skip("Model is overloaded")
except litellm.RateLimitError:

View file

@ -151,7 +151,7 @@ export default function CreateKeyPage() {
if (redirectToLogin) {
window.location.href = (proxyBaseUrl || "") + "/sso/key/generate"
}
}, [token, authLoading])
}, [redirectToLogin])
useEffect(() => {
if (!token) {
@ -223,7 +223,7 @@ export default function CreateKeyPage() {
}
}, [accessToken, userID, userRole]);
if (authLoading) {
if (authLoading || redirectToLogin) {
return <LoadingScreen />
}