Add LiteLLM proxy + cloudflared tunnel for vLLM at model.formulacode.org - #22
Merged
Conversation
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.
Summary
127.0.0.1:8123,:8124) athttps://model.formulacode.orgvia a newdatasmith-modelCloudflare Tunnel feeding a LiteLLM proxy on127.0.0.1:4100.litellmdatabase in the local Supabase Postgres, enabling the admin UI at/ui/, virtual keys, and spend logs.make model-tunnel) starts both LiteLLM and cloudflared together; persistent venv at.venv-litellm/is built once viamake model-proxy-install.Files
infra/litellm.config.yaml— model list (gemma-4-31b on 8123, model-b placeholder on 8124).Makefile—model-proxy-install(one-time venv +prisma generate) andmodel-tunnel(boot LiteLLM, wait for health, run cloudflared).docs/guide/model-proxy.md— architecture, operator setup, virtual-key issuance, troubleshooting.mkdocs.yml,CLAUDE.md— pointers to the new doc..gitignore— ignore.venv-litellm/.Test plan
make model-proxy-installsucceeds.make model-tunnelboots;/health/livelinessreturns 200.POST /v1/chat/completionswithmodel=gemma-4-31bround-trips through tunnel → LiteLLM → vLLM and returns expected output.https://model.formulacode.org/ui/returns 200 (no "Not connected to DB").POST /key/generatemints a virtual key;POST /key/deleterevokes it.make check+ tests pass on Python 3.11 / 3.12.