forked from google-gemini/gemini-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-ui-test.sh
More file actions
executable file
Β·38 lines (28 loc) Β· 1.03 KB
/
quick-ui-test.sh
File metadata and controls
executable file
Β·38 lines (28 loc) Β· 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
echo "π§ͺ Quick UI Test: Proxy Detection & Footer Display"
echo "================================================="
# Start proxy
cd proxy-service
export GCR_DEBUG=true
export GCR_PROVIDER=shuaihong
export GCR_TARGET_API_KEY=sk-g4hBumofoYFvLjLivj9uxeIYUR5uE3he2twZERTextAgsXPl
export GCR_MODEL=gpt-4o
echo "π‘ Starting proxy server..."
node src/server.js &
PROXY_PID=$!
cd ..
sleep 3
echo "π Testing proxy health..."
curl -s http://127.0.0.1:3458/health | jq .
echo ""
echo "π Testing CLI with proxy detection (will show UI briefly)..."
echo " Watch for footer showing: π Proxy:3458 | SHUAIHONG | gpt-4o"
echo ""
export GEMINI_API_KEY=AIzaSyBGVrcTiEDko1jZW0wmaGC_oYxK-AL3mEQ
# Run CLI with model parameter for 3 seconds to see UI
echo "Testing proxy UI display" | timeout 3s $HOME/.local/bin/gemini-local -m "gpt-4o" -p "Display UI test" || true
echo ""
echo "π Stopping proxy..."
kill $PROXY_PID 2>/dev/null
echo "β
UI test completed!"
echo "π Expected footer display: π Proxy:3458 | SHUAIHONG | gpt-4o"