From 4d9aa7a3f71bd7feac06dbdf8067be38034d822b Mon Sep 17 00:00:00 2001 From: David Manouchehri Date: Wed, 22 Nov 2023 23:07:33 -0500 Subject: [PATCH] Add symlink and only copy in source dir to stay under 50MB compressed limit for Lambdas. --- litellm/requirements.txt | 1 + template.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 120000 litellm/requirements.txt diff --git a/litellm/requirements.txt b/litellm/requirements.txt new file mode 120000 index 000000000..dc833dd4b --- /dev/null +++ b/litellm/requirements.txt @@ -0,0 +1 @@ +../requirements.txt \ No newline at end of file diff --git a/template.yaml b/template.yaml index 5b0d3b86f..448cc9241 100644 --- a/template.yaml +++ b/template.yaml @@ -45,8 +45,8 @@ Resources: Type: AWS::Serverless::Function Properties: FunctionName: !Sub "${AWS::StackName}-llmlite" - CodeUri: "./" - Handler: litellm/proxy/lambda.lambda_handler + CodeUri: "./litellm" + Handler: proxy/lambda.lambda_handler Runtime: python3.11 AutoPublishAlias: !Ref AliasParameter Role: !GetAtt LambdaExecutionRole.Arn