lmgpt

Crates.iolmgpt
lib.rslmgpt
version0.1.5
sourcesrc
created_at2023-07-16 18:57:58.130589
updated_at2023-07-18 03:00:27.010256
descriptionUse LM programs to drive ChatGPT in a functional style
homepage
repositoryhttps://github.com/andrew-johnson-4/lmgpt
max_upload_size
id917904
size42,255
Andrew Johnson (andrew-johnson-4)

documentation

README

lmgpt is an adapter to connect LM programs with the ChatGPT service.

LM Example

history := λyyyy mm dd. Tell me a historical event that happened on (month mm) dd yyyy

error (history 1932 09 17)

Running the Example

lmgpt example.lm

Example Output

On September 17, 1932, the military coup known as the "Revolution of 1932" took place in Brazil. This event marked a significant moment in Brazilian history and had lasting effects on the country's political landscape.

Installation

  1. Install Rust
  2. Install LMGPT
  3. Set your API key as an environment variable
cargo install lmgpt

export OPENAI_API_KEY=<your_api_key>

Documentation

Master List of LM ChatGPT Prompt Helper Functions.

Commit count: 25

cargo fmt