You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community
Blane Honeycutt 3fc1b3553b
Community: Adds ability to pass a Config to the boto3 client used by Bedrock (#15029)
# Description  
This PR adds the ability to pass a `botocore.config.Config` instance to
the boto3 client instantiated by the Bedrock LLM.

Currently, the Bedrock LLM doesn't support a way to pass a Config, which
means that some settings (e.g., timeouts and retry configuration)
require instantiating a new boto3 client with a Config and then
replacing the LLM's client:

```python
llm = Bedrock(
        region_name='us-west-2',
        model_id="anthropic.claude-v2",
        model_kwargs={'max_tokens_to_sample': 4096, 'temperature': 0},
)

llm.client = boto_client('bedrock-runtime', region_name='us-west-2', config=Config({'read_timeout': 300}))
```

# Issue
N/A

# Dependencies
N/A
10 months ago
..
adapters community[patch]: Add safe lookup to OpenAI response adapter (#14765) 10 months ago
agent_toolkits docs: docstrings `langchain_community` update (#14889) 10 months ago
callbacks docs: docstrings `langchain_community` update (#14889) 10 months ago
chat_loaders community[patch]: Enhance iMessage chat loader with timestamp parsing and message ownership (#14804) 10 months ago
chat_message_histories community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
chat_models community[minor]: add hf chat wrapper (#14736) 10 months ago
docstore community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
document_loaders corrected outdated link (#15053) 10 months ago
document_transformers docs: docstrings `langchain_community` update (#14889) 10 months ago
embeddings fix: correct spelling mistakes of "seperate, intialise, pre-defined" (#14647) 10 months ago
graphs community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
llms Community: Adds ability to pass a Config to the boto3 client used by Bedrock (#15029) 10 months ago
retrievers community[minor]: Qdrant sparse vector retriever (#14814) 10 months ago
storage community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
tools add defaults for tavily (#15075) 10 months ago
utilities community[patch]: Update arxiv.py with Entry ID as a return value (#14915) 10 months ago
utils docs: docstrings `langchain_community` update (#14889) 10 months ago
vectorstores fix: correct spelling mistakes of "seperate, intialise, pre-defined" (#14647) 10 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
cache.py community[patch]: Fixed issue with importing Row from sqlalchemy (#14488) 10 months ago
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago