feat: add litellm template#372
Open
phala-agent wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
cc @Marvin-Cypher for review. |
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
litellmprebuilt template for the upstreamBerriAI/litellmrepository.model_list, no provider credentials, no GPU, no model downloads, and no database requirement.templates/icons/litellm.jpgfromui/litellm-dashboard/public/assets/logos/litellm_logo.jpg.Template files
templates/prebuilt/litellm/docker-compose.ymltemplates/prebuilt/litellm/README.mdtemplates/icons/litellm.jpgtemplates/config.jsonEnvironment variables
LITELLM_IMAGE_TAG(optional, defaultmain-stable)LITELLM_LOG(optional, defaultINFO)LITELLM_MASTER_KEY(optional placeholder; set a strong value before exposing real model routes)OPENAI_API_KEY(optional placeholder for user-added model routes)ANTHROPIC_API_KEY(optional placeholder for user-added model routes)GOOGLE_API_KEY(optional placeholder for user-added model routes)No real secrets are included.
Validation
python3 templates/validate.py✅git diff --check origin/main...HEAD✅docker compose -f templates/prebuilt/litellm/docker-compose.yml config >/dev/null✅reporoute, noenv_file, no host bind mounts, no privileged/host networking, no literal secret patterns.Phala Cloud deployment smoke
hermes-admin-cvm-check/h4x's projectstdx.small,--wait,--no-public-logs, and--no-public-sysinfo.fb7f8f74-eb9f-455f-9794-4b976469d9163eab5fdf4c5df64bcdfad72da59098df3d8a9a45phala psshowed/dstack-litellm-1running and healthy.GET /health/liveliness-> HTTP 200, body"I'm alive!"GET /health/readiness-> HTTP 200, body includes"status":"healthy"GET /v1/models-> HTTP 200, body{"data":[],"object":"list"}Cleanup
The requested CVM was not found, so cleanup is verified.cc @Marvin-Cypher for review.