forked from phoenix/litellm-mirror
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
|
rq
|
||||||
prisma
|
prisma
|
||||||
celery
|
celery
|
||||||
psutil
|
psutil
|
||||||
|
mangum
|
|
@ -46,7 +46,7 @@ Resources:
|
||||||
Properties:
|
Properties:
|
||||||
FunctionName: !Sub "${AWS::StackName}-llmlite"
|
FunctionName: !Sub "${AWS::StackName}-llmlite"
|
||||||
CodeUri: "./litellm"
|
CodeUri: "./litellm"
|
||||||
Handler: proxy/lambda.lambda_handler
|
Handler: proxy/lambda.handler
|
||||||
Runtime: python3.11
|
Runtime: python3.11
|
||||||
AutoPublishAlias: !Ref AliasParameter
|
AutoPublishAlias: !Ref AliasParameter
|
||||||
Role: !GetAtt LambdaExecutionRole.Arn
|
Role: !GetAtt LambdaExecutionRole.Arn
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue