8 releases
0.1.5 | Jul 18, 2023 |
---|---|
0.1.4 | Jul 18, 2023 |
0.0.2 | Jul 16, 2023 |
#18 in #functional
31 downloads per month
14KB
81 lines
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
- Install Rust
- Install LMGPT
- Set your API key as an environment variable
cargo install lmgpt
export OPENAI_API_KEY=<your_api_key>
Documentation
Dependencies
~15MB
~381K SLoC