gptui 0.1.0

A TUI interface for OpenAI Chat Completions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::fs::copy;
use std::path::PathBuf;

fn main() {
    #[cfg(feature = "comptime-key")]
    let _ = env!("OPENAI_API_KEY");

    let config_path = concat!(env!("CARGO_MANIFEST_DIR"), "/assets/config.toml");
    let dest_path = PathBuf::from(std::env::var("OUT_DIR").unwrap()).join("config.toml");

    copy(config_path, dest_path).expect("Failed to set up build assets");
}