CLI and node service that assist studying the effects of LLM synthesizing programs
๐ Homepage
pnpm install
To use ChatGPT API, you should access https://chat.openai.com/api/auth/session to get your access token.
Then export it to ACCESS_TOKEN
environment varaible, and launch your node service
export ACCESS_TOKEN = ""
pnpm run node-service
pnpm run cli
Usage: chatalog [options] [command]
Options:
-h, --help display help for command
Commands:
generate-template [options] <directories...>
send-message [options]
help [command] display help for command
To generate questions with the specific template
pnpm run cli generate-template \
-t $(pwd)/templates/1_all_name_content.js \
-o ./output/templates \
~/kd_bench/adjacent-to-rend ~/kd_bench/graph-coloring
To generate answers by requesting ChatGPT api, you should first launch your node service, then run
pnpm run cli send-message \
-t http://0.0.0.0:4000/message \
-o ./output/messages \
-s template1.json template2.json
This README was generated with โค๏ธ by readme-md-generator