Skip to content

Instantly share code, notes, and snippets.

View DanielHabib's full-sized avatar

Daniel Habib DanielHabib

  • Brooklyn, NY
View GitHub Profile
@DanielHabib
DanielHabib / handler.py
Created November 20, 2023 20:32
LangChain Lambda Function
import json
from langchain.chat_models import ChatOpenAI
def lambda_handler(event, context):
# TODO implement
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}