llama-desktop 2.2.4

Desktop interface for Ollama
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub fn format_input_to_output(inp: impl Into<String>) -> String {
    let inp: String = inp.into();
    let mut out = "> ".to_string();
    for c in inp.chars() {
        out.push(c);
        if c == '\n' {
            out.push_str("> ");
        }
    }
    out.push_str("\n");
    out
}

pub const HR: &'static str = "\n\n-----\n";