Skip to content

CPunisher/chatalog

Repository files navigation

Welcome to chatalog 👋

Version License: MIT

CLI and node service that assist studying the effects of LLM synthesizing programs

Install

pnpm install

Usage

Node Service

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

CLI

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