mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-03-11 19:47:03 -04:00
fix: agent log (#37)
This commit is contained in:
1
changelog.d/37.change.md
Normal file
1
changelog.d/37.change.md
Normal file
@@ -0,0 +1 @@
|
||||
Fixes setting logs for agents to info instead of logger object.
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user