From daf0683cea53f4cb15c867893d44bd3866035cf2 Mon Sep 17 00:00:00 2001 From: mrbeandev Date: Mon, 16 Feb 2026 18:21:38 +0530 Subject: [PATCH] feat(termux): add network diagnostics and more API tests to manager --- assets/scripts/picoclaw-manager.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/scripts/picoclaw-manager.sh b/assets/scripts/picoclaw-manager.sh index 619769c25..18b7ac5d8 100644 --- a/assets/scripts/picoclaw-manager.sh +++ b/assets/scripts/picoclaw-manager.sh @@ -186,6 +186,18 @@ network_diagnostics() { echo -e "${RED}[!] OpenAI API unreachable.${NC}" fi + if curl -s --connect-timeout 5 https://open.bigmodel.cn &> /dev/null; then + echo -e "${GREEN}[✓] Zhipu (BigModel) API reachable.${NC}" + else + echo -e "${RED}[!] Zhipu (BigModel) API unreachable.${NC}" + fi + + if curl -s --connect-timeout 5 https://api.moonshot.cn &> /dev/null; then + echo -e "${GREEN}[✓] Moonshot API reachable.${NC}" + else + echo -e "${RED}[!] Moonshot API unreachable.${NC}" + fi + echo -e "\n${YELLOW}[TIP] If you are in a restricted network, configure a proxy in option 2.${NC}" read -p "Press Enter to return to menu..." }