Fix: aliyun oss need to use s3 signature_version (#12766)

### What problem does this PR solve?

Aliyun OSS do not support boto s4 signature_version which will lead to
an error:

```
botocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the PutObject operation: aws-chunked encoding is not supported with the specified x-amz-content-sha256 value
```

According to aliyun oss docs, oss_conn need to use s3 signature_version.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
会敲代码的喵
2026-01-22 11:43:55 +08:00
committed by GitHub
parent 6f3f69b62e
commit 2d9e7b4acd
4 changed files with 18 additions and 3 deletions

View File

@ -81,6 +81,8 @@ user_default_llm:
# region: '${REGION}'
# bucket: '${BUCKET}'
# prefix_path: '${OSS_PREFIX_PATH}'
# signature_version: 's3'
# addressing_style: 'virtual'
# azure:
# auth_type: 'sas'
# container_url: 'container_url'