Conversation
2. added documentaion regarding our findings for using:
# Client with LiteLLM as backend
lite_client = LlamaStackClient(
base_url=LITELLM_URL, # Your LiteLLM URL
api_key="...",
)
VS.
# Client with Llamastack server configured with LiteLLM as backend
llama_stack_client = LlamaStackClient(base_url=LLAMASTACK_URL)
now the demo is working with llamastack server using litellm as backend
johnson2500
reviewed
Jan 12, 2026
|
|
||
| def create_budget_key(base_url: str, master_key: str, max_budget: float) -> dict: | ||
| """Create a virtual key with a specified budget limit.""" | ||
| url = f"{base_url}/key/generate" |
Contributor
Author
There was a problem hiding this comment.
I'll see if we can use the litellm python library for this instead of using requests
* Add redis deployment * update budgest test (can't use the same message since we use cache)
johnson2500
approved these changes
Jan 13, 2026
Contributor
johnson2500
left a comment
There was a problem hiding this comment.
Approved. This looks very nice, and well documented. Thanks. I think later we can look at mine which can help with the API Keys.
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.
fix:
Client with LiteLLM as backend
VS.
Client with Llamastack server configured with LiteLLM as backend
Update: use the X-LlamaStack-Provider-Data header for dynamic authentication, now the demo is working with llamastack server