This repository contains LLM APIs with Rust language.
This repo is heavily inspired by kalosm.
- Create a new project:
cargo llm_apis
cd ./llm_apis
- Add
Kalosm
as a dependencies
cargo add kalosm
cargo add tokio --features full
cargo add tiktoken-rs = "0.5.9"
- Run
main.rs
as below.
- For Windows
LIBCLANG_PATH=/path/to/clang+llvm-XX.X.XX-x86_64-pc-windows-msvc/lib cargo run --release