mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-08 02:16:51 +08:00
feat/enhance the multi-modal support (#8818)
This commit is contained in:
@@ -72,7 +72,7 @@ class Storage:
|
||||
logging.exception("Failed to save file: %s", e)
|
||||
raise e
|
||||
|
||||
def load(self, filename: str, stream: bool = False) -> Union[bytes, Generator]:
|
||||
def load(self, filename: str, /, *, stream: bool = False) -> Union[bytes, Generator]:
|
||||
try:
|
||||
if stream:
|
||||
return self.load_stream(filename)
|
||||
|
||||
Reference in New Issue
Block a user