Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for configurable URL prefix when running in server mode #597

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

vlasky
Copy link
Contributor

@vlasky vlasky commented Oct 23, 2024

Added support for new commandline parameter --url-prefix that sets the URL prefix (subdirectory) under which the API will be served when llamafile is running in server mode, e.g.

llamafile --server --url-prefix /llamafile -m mymodel.gguf

Makes it much easier to run llamafile behind a reverse proxy.

… URL prefix (subdirectory) under which the API will be served when llamafile is running in server mode, e.g. --url-prefix /llamafile.

Makes it much easier to run llamafile behind a reverse proxy.
Copy link
Collaborator

@jart jart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for all the thought and care you put into this.

@jart jart merged commit eee4b46 into Mozilla-Ocho:main Oct 23, 2024
2 checks passed
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