Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 799 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 799 Bytes

Tim's experiments to ask AI to help coding.

Experiment 1: Auto solve leetcode problems and submit

Blogs: EN / 中文

letcode3.mov

Install

cd agent
npm install

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