feat(termux): add network diagnostics and more API tests to manager
This commit is contained in:
parent
6f975b8761
commit
daf0683cea
1 changed files with 12 additions and 0 deletions
|
|
@ -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..."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue