A local-first private AI assistant for everyday use. Runs on-device models with encrypted P2P sync, and supports sharing chats publicly on ATProto.
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: sample in main

madclaws aa023f97 34b52153

+6 -3
+6 -3
src/main.rs
··· 4 4 pub fn main() -> Result<(), Box<dyn Error>> { 5 5 println!("{}:{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")); 6 6 7 - let modf = modelfile::parse_from_file("assets/tests/mistral.modelfile"); 8 - 9 - println!("{:?}", modf); 7 + let mut modf = modelfile::parse_from_file("fixtures/a.modelfile")?; 8 + modf.add_parameter("temperature", "0.5")?; 9 + modf.add_message("user", "Is Rust a functional language")?; 10 + modf.add_message("assistant", "no")?; 11 + modf.build()?; 12 + println!("{:?}", modf.to_string()); 10 13 Ok(()) 11 14 }