CPunisher / chatalog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to chatalog ๐Ÿ‘‹

Version License: MIT

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

๐Ÿ  Homepage

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

About


Languages

Language:TypeScript 65.0%Language:JavaScript 33.1%Language:CSS 1.6%Language:HTML 0.3%