cd projects/gemini_flow
python -m pip install -r requirements.txtpython cli.py chat -c user_cookies "用繁中回覆一句:測試成功"Choose model:
python cli.py chat -m gemini-3-pro -c user_cookies "用繁中回覆一句:測試成功"
python cli.py chat -m gemini-3-flash -c user_cookies "用繁中回覆一句:測試成功"Debug mode (prints token/response previews):
python cli.py chat --debug -c user_cookies "hello"Start an HTTP server:
python server.py --host 127.0.0.1 --port 8000Health check:
curl http://127.0.0.1:8000/healthChat (returns full text + any saved image paths):
curl -X POST http://127.0.0.1:8000/chat \
-H "Content-Type: application/json" \
-d '{"prompt":"用繁中回覆一句:測試成功","model":"gemini-2.5-pro"}'Stream (SSE):
curl -N -X POST http://127.0.0.1:8000/stream \
-H "Content-Type: application/json" \
-d '{"prompt":"講一個故事"}'The cookies directory should contain one or more *.json files exported from Chrome/extensions.
Each file must be a JSON list of objects including at least: domain, name, value.
- If you see
SNlM0e token not found, your cookies are likely expired.
chrome.exe --user-data-dir="C:\...\GeminiFlow\user_cookies\.pw-profile"