Closed Duncan-Haywood closed 6 months ago
The reason it was bothering me is that when I'm using it as a "CLI" for testing, the warning messages keep popping up like so
--------------------------------------------------------------------------------
No default IOStream has been set, defaulting to IOConsole.
No default IOStream has been set, defaulting to IOConsole.
response-evaluator-agent (to chat_manager):
Your response effectively builds upon the user's acknowledgment of the benefits of real-time performance monitoring and analytics, linking it to Chatgems' capabilities. By asking how the insights will be integrated into their workflows and measuring impact, you keep the conversation focused on tangible outcomes. Great job!
which would be nice not to have.
it's possible to remove these by using this line in the if name == "main" block:
autogen.logger.setLevel(logging.ERROR)
but I feel like this is something that should possibly be at a lower log level?
If not, hopefully I can figure out how to set IOStream; the following didn't help for it:
autogen.io.IOStream.set_default(autogen.io.IOConsole())
This is resolved and will be fixed in the next release. #2207
Thanks @ekzhu
Describe the issue
Just a preference and maybe a clarification request. The warning I'm getting is WARNING:autogen.io.base:No default IOStream has been set, defaulting to IOConsole. But I feel like that doesn't need to be a warning level log. Or if it is a big problem, the way to fix it is not very clear. I tried adding this line, but it didn't solve the problem: autogen.io.IOStream.set_default(autogen.io.IOConsole()) Any advice anyone?
Steps to reproduce
import autogen import logging from dotenv import load_dotenv
load_dotenv() autogen.DEFAULT_MODEL = "gpt-4-0125-preview" autogen.FAST_MODEL = "gpt-3.5-turbo"
logger = logging.getLogger(name)
def main(messages: list[dict], prompt):
get conversation prompt
if name == "main": logging.basicConfig(level=logging.INFO) prompt = "this is a test prompt. ask interview questions to aquire a customer for Chatgems." main([{"role": "user", "content": ""}], prompt)
Screenshots and logs
WARNING:autogen.io.base:No default IOStream has been set, defaulting to IOConsole.
Additional Information
Thanks for any help. version: version = "0.2.21" also have autogenstudio installed in this virtual environment.