[ENV] support AK SK ENCPOINT while get the multi_modal's feature (#5159)

This commit is contained in:
lizhenyun01
2025-11-21 15:07:57 +08:00
committed by GitHub
parent 34f59d9800
commit 3c36283d7d
2 changed files with 6 additions and 1 deletions

View File

@@ -972,7 +972,8 @@ def init_bos_client():
from baidubce.services.bos.bos_client import BosClient
cfg = BceClientConfiguration(
credentials=BceCredentials(envs.ENCODE_FEATURE_BOS_AK, envs.ENCODE_FEATURE_BOS_SK), endpoint="bj.bcebos.com"
credentials=BceCredentials(envs.ENCODE_FEATURE_BOS_AK, envs.ENCODE_FEATURE_BOS_SK),
endpoint=envs.ENCODE_FEATURE_ENDPOINT,
)
return BosClient(cfg)