Skip to content

docs(server): explain HOST and PORT precedence - #2435

Open
cloudgpuapp wants to merge 1 commit into
abetlen:mainfrom
cloudgpuapp:docs/server-bind-precedence
Open

cloudgpuapp wants to merge 1 commit into
abetlen:mainfrom
cloudgpuapp:docs/server-bind-precedence

Conversation

@cloudgpuapp

Copy link
Copy Markdown
Contributor

Summary

Document which address the server launched by python3 -m llama_cpp.server actually binds to when CLI flags, a config file, and the HOST and PORT environment variables disagree. Include a one-invocation example for clearing both environment overrides on Linux or macOS.

Addresses #1359. This documents the existing precedence without changing it.

Validation

  • Exercised the real CLI entry point and settings for default, CLI, config-file, and environment values, with the application factory and Uvicorn launch stubbed.
  • Checked shell syntax and built the documentation with MkDocs. No model or listener was started.

Prepared with AI assistance.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant