mullama 0.3.0

Comprehensive Rust bindings for llama.cpp with memory-safe API and advanced features
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use axum::{
    http::{header, StatusCode, Uri},
    response::IntoResponse,
};

/// Redirect /ui to /ui/
pub(super) async fn ui_redirect() -> impl IntoResponse {
    (
        StatusCode::TEMPORARY_REDIRECT,
        [(header::LOCATION, "/ui/")],
        "",
    )
}

/// Serve embedded UI assets
pub(super) async fn serve_ui_handler(uri: Uri) -> impl IntoResponse {
    crate::daemon::ui::serve_ui(uri).await
}