Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 752 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 752 Bytes

Tim's experiments to ask AI to help coding.

Experiment 1: Auto solve leetcode problems and submit

Blogs: EN / 中文

letcode3.mov

How to play with the script

  1. Open Chrome in remote debug mode:
    # on macOS
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  2. Make sure you have logged in to leetcode.com.
  3. Run the script.
    # set env variable
    export OPENAI_API_KEY="your API key"
    # run the script
    node agent/leecode.mjs