Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dashscope/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ class Oss:
@classmethod
def upload(cls, args):
print(
f"Start oss.upload: model={args.model}, file={args.file}, "
f"api_key={args.api_key}",
f"Start oss.upload: model={args.model}, file={args.file}",
)
Comment on lines 227 to 229

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider replacing print with the logging module for CLI output. Using a logger is a best practice that offers more flexibility, such as configurable log levels (INFO, DEBUG, ERROR), formatting, and routing output to different destinations like files or stderr. While this would be a broader change across the file, starting here would improve the tool's maintainability.

if not args.file or not args.model:
print("Please specify the model and file path")
Expand Down