MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / finish

Method finish

logging_utils/core/rendering.py:584–595  ·  view source on GitHub ↗

Complete the progress and move to new line. Args: message: Optional completion message

(self, message: Optional[str] = None)

Source from the content-addressed store, hash-verified

582 sys.stdout.flush()
583
584 def finish(self, message: Optional[str] = None) -> None:
585 """
586 Complete the progress and move to new line.
587
588 Args:
589 message: Optional completion message
590 """
591 if self._started:
592 if message:
593 sys.stdout.write(f" - {Colors.STRING}{message}{Colors.RESET}")
594 sys.stdout.write("\n")
595 sys.stdout.flush()
596
597
598# =============================================================================

Calls 2

writeMethod · 0.45
flushMethod · 0.45