mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
Add mangum.
This commit is contained in:
parent
4d9aa7a3f7
commit
60ca43b6d9
3 changed files with 7 additions and 2 deletions
4
litellm/proxy/lambda.py
Normal file
4
litellm/proxy/lambda.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
from mangum import Mangum
|
||||
from litellm.proxy.proxy_server import app
|
||||
|
||||
handler = Mangum(app, lifespan="on")
|
|
@ -13,4 +13,5 @@ pyyaml
|
|||
rq
|
||||
prisma
|
||||
celery
|
||||
psutil
|
||||
psutil
|
||||
mangum
|
|
@ -46,7 +46,7 @@ Resources:
|
|||
Properties:
|
||||
FunctionName: !Sub "${AWS::StackName}-llmlite"
|
||||
CodeUri: "./litellm"
|
||||
Handler: proxy/lambda.lambda_handler
|
||||
Handler: proxy/lambda.handler
|
||||
Runtime: python3.11
|
||||
AutoPublishAlias: !Ref AliasParameter
|
||||
Role: !GetAtt LambdaExecutionRole.Arn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue