You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some serverless environments (ie: some lambda/fargate/etc) this approach may fail due to the clobbering of path/environment, and tracking it down will be a pain.
You can use the boto3 session to pass an auth object like this:
Also - note that if you go to BedrockChat (vs current Bedrock), you can utilize some of the new "chat only" models.
The new LangChain loads would be:
from langchain_community.chat_models import BedrockChat
from langchain_core.messages import HumanMessage, SystemMessage
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain_core.output_parsers import StrOutputParser
The text was updated successfully, but these errors were encountered:
talkwithhollis-langchain/app/worker.py
Lines 31 to 36 in 5066a90
Hi,
In some serverless environments (ie: some lambda/fargate/etc) this approach may fail due to the clobbering of path/environment, and tracking it down will be a pain.
You can use the boto3 session to pass an auth object like this:
Also - note that if you go to
BedrockChat
(vs currentBedrock
), you can utilize some of the new "chat only" models.The new LangChain loads would be:
The text was updated successfully, but these errors were encountered: