Repository navigation
feat!: change the default bind port from 8000 to 8001 - #21
Merged
Merged
Conversation
8000 is one of the most contended ports on a developer machine (Django, uvicorn/FastAPI, `python3 -m http.server`, php -S, and a long tail of local dev servers all default to it), so the proxy's own default was prone to colliding with something already running. Move it to 8001. - `--port` now defaults to 8001 (and says so in its `--help` text). - Update the usage examples in the module docstring and the README (quick-start run + curl, and the Aider `--openai-api-base` example) so copy-pasting them still matches the default. - Bump the version 0.9.0 -> 0.10.0 (`PROXY_VERSION`, `pyproject.toml`, `uv.lock`): the default a bare `python3 m365_openai_proxy.py` binds to is user-visible behavior, so this is not a patch-level change. `--port` itself is unchanged, so anyone who passes it explicitly is unaffected; only the no-flag default moves.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Changes the proxy's default bind port from 8000 to 8001.
Why
Port 8000 is one of the most contended ports on a developer machine — Django, uvicorn/FastAPI,
python3 -m http.server,php -Sand a long tail of local dev servers all default to it. Picking a neighbouring, far less crowded port makes a barepython3 m365_openai_proxy.pymuch more likely to just work.Changes
m365_openai_proxy.py—--portnow defaults to8001, and its--helptext says so.USAGEblock (run line +curl),README.mdquick start (run line +curl),README.mdAider example (--openai-api-base http://127.0.0.1:8001/v1).PROXY_VERSION,pyproject.tomlanduv.lock, per AGENTS.md's "Versioning & releases" (all three kept in sync). The port a no-flag run binds to is user-visible behavior, so this is not a patch-level change. ThevX.Y.Ztag + GitHub Release remain a post-merge step for the maintainer.REVERSE_ENGINEERING.mdstill mentions:8000— deliberately left alone: those are historical records of specific past investigation runs, not instructions to follow.Compatibility
--portitself is unchanged, so anyone passing it explicitly is unaffected — only the no-flag default moves. Anyone relying on the old default needs either--port 8000or to repoint their client at:8001.Verification
Full local CI gate from AGENTS.md, all green:
uv run ruff format .— 9 files left unchangeduv run ruff check .— All checks passeduv run bandit -c pyproject.toml m365_openai_proxy.py— 0 issues (Undefined/Low/Medium/High all 0)python3 -m py_compile m365_openai_proxy.py— OKpython3 m365_openai_proxy.py --help— OK (also exercises the pure-Python AES self-check); reportsbind port (default: 8001)uv run pytest— 22 passedStill stdlib-only and single-file; no dependency or structural change.