fix: agent log (#37)

This commit is contained in:
Aaron Pham
2023-06-19 14:11:39 -04:00
committed by GitHub
parent 78a537079e
commit ca802d9d1a
2 changed files with 2 additions and 1 deletions

1
changelog.d/37.change.md Normal file
View File

@@ -0,0 +1 @@
Fixes setting logs for agents to info instead of logger object.

View File

@@ -1153,7 +1153,7 @@ def instruct(
_memoized = {k: v[0] for k, v in _memoized.items() if v}
client._hf_agent.set_stream(logger)
client._hf_agent.set_stream(logger.info)
if output != "porcelain":
_echo(f"Sending the following prompt ('{task}') with the following vars: {_memoized}", fg="magenta")