docs: use a literal placeholder key in non-shell examples

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-09-11 21:16:49 +00:00
parent 0c2344614f
commit ac801bcdc7
4 changed files with 5 additions and 5 deletions

View file

@ -168,7 +168,7 @@ from a2a.utils.constants import TransportProtocol
from uuid import uuid4
base_url = "http://localhost:4000/a2a/my-agent" # LiteLLM proxy + agent name
headers = {"Authorization": "Bearer $LITELLM_API_KEY"} # LiteLLM Virtual Key
headers = {"Authorization": "Bearer sk-<your-litellm-api-key>"} # LiteLLM Virtual Key
async with httpx.AsyncClient(headers=headers, timeout=60.0) as http_client:
resolver = A2ACardResolver(httpx_client=http_client, base_url=base_url)
@ -255,7 +255,7 @@ curl -X POST 'http://0.0.0.0:4000/v1/chat/completions' \
"LiteLLM": {
"url": "http://localhost:4000/mcp/",
"headers": {
"x-litellm-api-key": "Bearer $LITELLM_API_KEY"
"x-litellm-api-key": "Bearer sk-<your-litellm-api-key>"
}
}
}

View file

@ -175,7 +175,7 @@ class LoggingCallbackManager:
callback_type: generic_api
endpoint: https://webhook-test.com/30343bc33591bc5e6dc44217ceae3e0a
headers:
Authorization: Bearer $LITELLM_API_KEY
Authorization: Bearer sk-<your-litellm-api-key>
"""
callback_config: Final = litellm.callback_settings.get(callback)

View file

@ -1300,7 +1300,7 @@ async def _user_api_key_auth_builder(
route=route,
request=request,
)
# if user wants to pass LiteLLM_Master_Key as a custom header, example pass litellm keys as X-LiteLLM-Key: Bearer $LITELLM_API_KEY
# if user wants to pass LiteLLM_Master_Key as a custom header, example pass litellm keys as X-LiteLLM-Key: Bearer sk-<your-litellm-api-key>
custom_litellm_key_header_name: Final = general_settings.get("litellm_key_header_name")
if custom_litellm_key_header_name is not None:
api_key = get_api_key_from_custom_header(

View file

@ -29,7 +29,7 @@ const buildPythonSnippet = (group: RoutingGroup, baseUrl: string): string =>
`from openai import OpenAI
client = OpenAI(
api_key="$LITELLM_API_KEY",
api_key="sk-<your-litellm-api-key>",
base_url="${baseUrl}",
)