### What problem does this PR solve?
Moved `signature_version` and `addressing_style` parameters to a
`Config` object from `botocore.config`
`signature_version` is now passed as `Config(signature_version='v4')`
`addressing_style` is now passed as `Config(s3={'addressing_style':
'path'})`
The `Config` object is then passed to `boto3.client()` via the `config`
parameter
## Changes Made
- Modified `rag/utils/s3_conn.py` in the `__open__()` method
- Updated parameter handling logic to use `config_kwargs` dictionary
- Maintained backward compatibility for configurations without these
parameters
## Related Issue
Fixes #9910
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
Co-authored-by: Syed Shahmeer Ali <ashahmeer73@gmail.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| azure_sas_conn.py | ||
| azure_spn_conn.py | ||
| doc_store_conn.py | ||
| es_conn.py | ||
| infinity_conn.py | ||
| mcp_tool_call_conn.py | ||
| minio_conn.py | ||
| opendal_conn.py | ||
| opensearch_conn.py | ||
| oss_conn.py | ||
| redis_conn.py | ||
| s3_conn.py | ||
| storage_factory.py | ||
| tavily_conn.py | ||