-
Notifications
You must be signed in to change notification settings - Fork 1
Add LiteLLM provider support #1
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,5 +8,5 @@ __pycache__/ | |
| build/ | ||
| dist/ | ||
| *.egg-info/ | ||
|
|
||
| *.md | ||
| env.sh | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,14 @@ | ||||||||||||||||||||||||||||||||||||||
| export LITELLM_MODEL=glm-4.7 | ||||||||||||||||||||||||||||||||||||||
| export LITELLM_PROXY_API_KEY=sk-1234 | ||||||||||||||||||||||||||||||||||||||
| export LITELLM_PROXY_API_BASE=http://192.168.43.179:4001 | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+3
|
||||||||||||||||||||||||||||||||||||||
| export LITELLM_MODEL=glm-4.7 | |
| export LITELLM_PROXY_API_KEY=sk-1234 | |
| export LITELLM_PROXY_API_BASE=http://192.168.43.179:4001 | |
| # Default model can be overridden via LITELLM_MODEL | |
| export LITELLM_MODEL="${LITELLM_MODEL:-glm-4.7}" | |
| # Require the API key to be provided via the environment; do not hardcode it here. | |
| if [ -z "${LITELLM_PROXY_API_KEY:-}" ]; then | |
| echo "Error: LITELLM_PROXY_API_KEY is not set. Please export it in your environment before running this script." >&2 | |
| exit 1 | |
| fi | |
| export LITELLM_PROXY_API_KEY | |
| # Default API base can be overridden via LITELLM_PROXY_API_BASE; use localhost by default. | |
| export LITELLM_PROXY_API_BASE="${LITELLM_PROXY_API_BASE:-http://127.0.0.1:4001}" |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incomplete text. Line 8 appears to be missing the first character. Should be 'To use:' instead of 'o use:'.
| o use: | |
| To use: |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing capital letter. Should be 'Or' instead of 'or' for proper sentence structure.
| or | |
| Or |
Copilot
AI
Jan 14, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exit statement on line 6 makes all subsequent documentation (lines 8-14) unreachable and non-functional. If this is intentional to prevent accidental execution, the documentation should be moved above the exit or the exit should be removed.
| exit | |
| o use: | |
| $: uv tool install git+https://github.com/ExpressGradient/laser | |
| $: laser | |
| or | |
| $: uvx --from git+https://github.com/ExpressGradient/laser laser | |
| # To use: | |
| # | |
| # $: uv tool install git+https://github.com/ExpressGradient/laser | |
| # $: laser | |
| # | |
| # or | |
| # $: uvx --from git+https://github.com/ExpressGradient/laser laser | |
| exit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
LITELLM_MODELenvironment variable override behavior should be documented. Add a comment explaining that this allows runtime model override for litellm provider, as this is unique behavior not present in other providers.