Skip to content

Upstream endpoint should always end with a / #321

@mostlygeek

Description

@mostlygeek

When requesting /upstream/model the upstream UI should redirect to /upstream/model/. llama-swap's UI already creates upstream links with a trailing /. However, when manually requesting /upstream/:model it should respond with a 301 (Moved Permanently) to /upstream/:model/.

The current behaviour causes problems with llama-server's legacy UI as well as the new UI with hash based routing (ggml-org/llama.cpp#16157).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions