Skip to content

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

Merged
jart merged 2 commits intomozilla-ai:mainfrom
vlasky:url-prefix
Oct 23, 2024
Merged

Support for configurable URL prefix when running in server mode#597
jart merged 2 commits intomozilla-ai:mainfrom
vlasky:url-prefix

Conversation

@vlasky
Copy link
Copy Markdown
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
Copy Markdown
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-ai:main Oct 23, 2024
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