pub fn llama_version() -> &'static strExpand description
Version of the vendored llama.cpp this crate is linked against.
llama.cpp adopted semantic versioning in b10470 / v0.1.1, so this is a
MAJOR.MINOR.PATCH string (with a -dev suffix for builds off a
non-release commit) rather than a bNNNNN build number. Useful for
reporting the exact upstream a binary carries, since the crate version and
the llama.cpp version move independently.
let version = llama_version();
assert!(!version.is_empty());
// e.g. "0.1.1"
assert!(version.starts_with(char::is_numeric));ยงPanics
Panics if the returned string is not valid UTF-8.