Skip to content

Instantly share code, notes, and snippets.

@thesues
Created May 13, 2024 20:18
Show Gist options
  • Save thesues/019eb9d06634982bfb8169c12f1a6a92 to your computer and use it in GitHub Desktop.
Save thesues/019eb9d06634982bfb8169c12f1a6a92 to your computer and use it in GitHub Desktop.
task=$(curl --location 'http://ailint.tiktok-row.org/dev' --header 'Authorization: ABCDEFG' --header 'Content-Type: application/json' --data '{"repo":"https://github.com/bd-iaas-us/AILint.git", "token":"FAKE", "prompt":"create a file whose name is utils.py. implement a binary search. export function as search(array, value)"}' | python3 -c "import sys, json; print(json.load(sys.stdin)['task_id'])")
curl http://ailint.tiktok-row.org/dev/histories/$task --header 'Authorization: ABCDEFG'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment