mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-27 14:25:20 +02:00
- keep log_llm_stream from effect
This commit is contained in:
parent
67130fc2d6
commit
5bad744f44
1 changed files with 4 additions and 3 deletions
|
|
@ -35,8 +35,7 @@ logger = define_log_level()
|
|||
|
||||
|
||||
def log_llm_stream(msg):
|
||||
if _print_level in ["DEBUG"]:
|
||||
_llm_stream_log(msg)
|
||||
_llm_stream_log(msg)
|
||||
|
||||
|
||||
def set_llm_stream_logfunc(func):
|
||||
|
|
@ -44,4 +43,6 @@ def set_llm_stream_logfunc(func):
|
|||
_llm_stream_log = func
|
||||
|
||||
|
||||
_llm_stream_log = partial(print, end="")
|
||||
def _llm_stream_log(msg):
|
||||
if _print_level in ["DEBUG"]:
|
||||
print(msg, end="")
|
||||
Loading…
Add table
Add a link
Reference in a new issue