Fix screenshot capture and add multi-provider support
- Fix adb exec-out binary pipe for screenshot capture - Add XAI, Azure, and any OpenAI-compatible endpoint support - Add rate limit retry logic - Document all supported provider configurations
This commit is contained in:
10017
package-lock.json
generated
Normal file
10017
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
BIN
scripts/__pycache__/android-cua-smoke.cpython-312.pyc
Normal file
BIN
scripts/__pycache__/android-cua-smoke.cpython-312.pyc
Normal file
Binary file not shown.
@@ -15,8 +15,30 @@ Requirements:
|
|||||||
ADB in PATH with a connected device/emulator.
|
ADB in PATH with a connected device/emulator.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
export OPENAI_API_KEY=...
|
# OpenAI
|
||||||
python scripts/android-cua-smoke.py --goal "Connect to server 100.108.64.76:4096 and send 'ping'"
|
export OPENAI_API_KEY=sk-...
|
||||||
|
python scripts/android-cua-smoke.py
|
||||||
|
|
||||||
|
# Azure OpenAI (with deployment)
|
||||||
|
export OPENAI_API_KEY=<key>
|
||||||
|
export OPENAI_BASE_URL=https://<resource>.openai.azure.com/openai/deployments/<deployment>/
|
||||||
|
python scripts/android-cua-smoke.py --model gpt-4o
|
||||||
|
|
||||||
|
# Google Gemini (via OpenAI-compat)
|
||||||
|
export GEMINI_API_KEY=AIza...
|
||||||
|
python scripts/android-cua-smoke.py
|
||||||
|
|
||||||
|
# xAI Grok
|
||||||
|
export XAI_API_KEY=xai-...
|
||||||
|
python scripts/android-cua-smoke.py
|
||||||
|
|
||||||
|
# Any OpenAI-compatible endpoint (LiteLLM, Ollama, etc.)
|
||||||
|
export OPENAI_API_KEY=dummy
|
||||||
|
export OPENAI_BASE_URL=http://localhost:4000/v1
|
||||||
|
python scripts/android-cua-smoke.py --model gpt-4o
|
||||||
|
|
||||||
|
# Custom goal
|
||||||
|
python scripts/android-cua-smoke.py --goal "Open settings and toggle dark mode"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|||||||
Reference in New Issue
Block a user