mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
docs: fix docs
This commit is contained in:
parent
a38e2f052e
commit
25213f6087
1 changed files with 1 additions and 3 deletions
|
|
@ -274,9 +274,7 @@ runtime_client = boto3.client(
|
|||
|
||||
# Custom header injection
|
||||
def inject_custom_headers(request, **kwargs):
|
||||
request.headers.update({
|
||||
'litellm_user_api_key': 'sk-1234',
|
||||
})
|
||||
request.headers.update(custom_headers)
|
||||
|
||||
# Attach the event to inject custom headers before the request is sent
|
||||
runtime_client.meta.events.register('before-send.*.*', inject_custom_headers)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue