ragflow/rag
Syed Shahmeer Ali ddaed541ff
Fix S3 client initialization with signature_version and addressing_style (#9911)
### 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>
2025-09-05 09:58:30 +08:00
..
app Refactor: Improve the buffer close for vision_llm_chunk (#9845) 2025-09-02 10:31:37 +08:00
flow Feat: init dataflow. (#9791) 2025-08-28 18:40:32 +08:00
llm Feat: add exponential back-off for Chat LiteLLM (#9880) 2025-09-03 13:31:43 +08:00
nlp Feat: init dataflow. (#9791) 2025-08-28 18:40:32 +08:00
prompts Fix: meta data error. (#9670) 2025-08-25 09:41:52 +08:00
res Refa: add result to callback for agent tool use. (#9137) 2025-08-01 21:49:39 +08:00
svr Refactor: Improve the try logic for upload_to_minio (#9735) 2025-08-28 09:35:29 +08:00
utils Fix S3 client initialization with signature_version and addressing_style (#9911) 2025-09-05 09:58:30 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
raptor.py Refactor: based on async await to handle Redis when raptor (#9576) 2025-08-22 10:58:02 +08:00
settings.py Feat: make document parsing and embedding batch sizes configurable via environment variables (#8266) 2025-06-16 13:40:47 +08:00