Need help adding Deepgram and Anthropic SDKs to Me...
# support
a
Hi all you brilliant people! Hope you're all well. So... I've built this great progress note therapy scribe which was working perfectly on my localhost -- using Deepgram and Anthropic SDK -- and now I'm trying to get this to work on my AWS Self-hosted branch. So, basically, I'm trying to add the Deepgram SDK and Anthropic SDK to my AWS Self-hosted Medplum installation. (I think that's what I need to do.) I've got some Medplum Bots that transcribe (via Deepgram) and process text (via Claude). I am assuming that I need to put this into my Bot Layer for use in Lambda functions? (Though not sure if that's the right approach -- or if there is a better way of doing things.) Current Setup: So... I have a couple of bots that uses both Deepgram and Anthropic SDKs What I Need: I would like to add @deepgram/sdk and @anthropic-ai/sdk to the bot layer -- or at least figure out a way to get my bots able to access these SDKs. I am able to do it on Localhost -- but haven't figured out how to do it on my AWS Self-hosted Setup. Question: Should I modify the bot layer's package.json and run deploy-bot-layer.sh, or is there a different recommended approach? I don't mind trying to edit deploy-bot-layer.sh if that is helpful. But I also don't want to break anything or do anything out of pocket. Anyhow, thanks for all your thoughts! @reshma @rahul1 @cody
So... I've got it working!!! Not sure if this is what made it "fixed" but I think I succesfully added Deepgram SDK to the lambda layer... by doing the following: 1. Modifying the bot layer's package.json to include Deepgram and Anthropic SDK's as a dependency 2. Then deploy the updated bot layer using the deploy script here: ./scripts/deploy-bot-layer.sh Hope that's the right protocol. And maybe this made the difference! But this is now solved and fixed for me. Fingers crossed that this is the right way to do things and that I didn't break anything! 🙂
r
@albert_wong spot on! You'll notice that we don't yet have an "official" way to deploy custom bot layers, but the protocol you've followed is the same we follow for Medplum hosted
Thanks for being patient with us, working through this, and contributing back to the community
a
@rahul1 No worries -- I know you've all got lots on your plate and I'm just glad I can be a little bit helpful sometimes! Thank you and the team for doing so much of the hard, meticulous work of building the inner wiring of the whole darn thing.
181 Views