Skip to content

Conversation

@vlasky
Copy link
Contributor

@vlasky vlasky commented May 30, 2025

When running the server and specifying a custom URL prefix (e.g. /llm), the Chatbot Web UI JS code will access the endpoints with the proper URL prefix prepended to the path.

@cjpais
Copy link
Collaborator

cjpais commented Jun 29, 2025

Hopefully I'll have a chance to review and test this this week.

@vlasky
Copy link
Contributor Author

vlasky commented Nov 13, 2025

Hopefully I'll have a chance to review and test this this week.

Hello, are you now in a better position to review and test this?

@vlasky vlasky force-pushed the llamafiler_url_prefix branch from 588bdb1 to 8f50fe6 Compare December 3, 2025 23:57
…edirect

- The prefix can be specified with or without a trailing slash
  (e.g., --url-prefix /llm or --url-prefix /llm/)
- Automatically add trailing slash when necessary via HTTP redirect
- Add send_redirect() method for HTTP redirects
- Reject prefix collisions (e.g., /llmfoo when prefix is /llm)
- Update man page example to use /llm
@vlasky vlasky force-pushed the llamafiler_url_prefix branch from 8f50fe6 to 20716e3 Compare December 4, 2025 00:04
@vlasky
Copy link
Contributor Author

vlasky commented Dec 4, 2025

@cjpais I have improved this - the URL prefix can be specified with or without a trailing slash (e.g., --url-prefix /llm or --url-prefix /llm/). It will automatically add the trailing slash when necessary via HTTP redirect.

@cjpais
Copy link
Collaborator

cjpais commented Dec 4, 2025

pinging @njbrake and @aittalam as they are doing more with llamafile these days, I unfortunately don't have a ton of spare time at the moment and most of it is going to my own local stt project cjpais/handy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants