Fix: self-deployed LLM error, (#9217)

### What problem does this PR solve?

Close #9197
Close #9145

### Type of change

- [x] Refactoring
- [x] Bug fixing.
This commit is contained in:
Kevin Hu
2025-08-05 09:49:47 +08:00
committed by GitHub
parent 7724acbadb
commit 6ec3f18e22
4 changed files with 14 additions and 8 deletions

View File

@ -123,7 +123,7 @@ class RAGFlowS3:
@use_prefix_path
@use_default_bucket
def put(self, bucket, fnm, binary):
def put(self, bucket, fnm, binary, **kwargs):
logging.debug(f"bucket name {bucket}; filename :{fnm}:")
for _ in range(1):
try:
@ -140,7 +140,7 @@ class RAGFlowS3:
@use_prefix_path
@use_default_bucket
def rm(self, bucket, fnm):
def rm(self, bucket, fnm, **kwargs):
try:
self.conn.delete_object(Bucket=bucket, Key=fnm)
except Exception:
@ -148,7 +148,7 @@ class RAGFlowS3:
@use_prefix_path
@use_default_bucket
def get(self, bucket, fnm):
def get(self, bucket, fnm, **kwargs):
for _ in range(1):
try:
r = self.conn.get_object(Bucket=bucket, Key=fnm)
@ -162,7 +162,7 @@ class RAGFlowS3:
@use_prefix_path
@use_default_bucket
def obj_exist(self, bucket, fnm):
def obj_exist(self, bucket, fnm, **kwargs):
try:
if self.conn.head_object(Bucket=bucket, Key=fnm):
return True
@ -174,7 +174,7 @@ class RAGFlowS3:
@use_prefix_path
@use_default_bucket
def get_presigned_url(self, bucket, fnm, expires):
def get_presigned_url(self, bucket, fnm, expires, **kwargs):
for _ in range(10):
try:
r = self.conn.generate_presigned_url('get_object',