feat(termux): add network diagnostics and more API tests to manager

This commit is contained in:
mrbeandev 2026-02-16 18:21:38 +05:30
parent 6f975b8761
commit daf0683cea

View file

@ -186,6 +186,18 @@ network_diagnostics() {
echo -e "${RED}[!] OpenAI API unreachable.${NC}" echo -e "${RED}[!] OpenAI API unreachable.${NC}"
fi 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}" 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..." read -p "Press Enter to return to menu..."
} }