microsoft / autogen

A programming framework for agentic AI. Discord: https://aka.ms/autogen-dc. Roadmap: https://aka.ms/autogen-roadmap
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
28.12k stars 4.11k forks source link

Python is not executed, terminate appears. #3054

Open Lxhnnn opened 4 days ago

Lxhnnn commented 4 days ago

Describe the bug

user_proxy (to assistant):

what time is it


[autogen.oai.client: 07-01 19:02:00] {315} WARNING - Model liheroAI is not found. The cost will be 0. In your config_list, add field {"price" : [prompt_price_per_1k, completion_token_price_per_1k]} for customized pricing. assistant (to user_proxy):

To get the current time, you can use the following Python code:

from datetime import datetime

current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print("The current time is:", current_time)

This code will output the current date and time in the format "YYYY-MM-DD HH:MM:SS". If you need a different format, you can modify the string passed to strftime(). After running this code, you will get the current time. If there's anything else you'd like to know or if this time is needed for a specific task, please let me know. TERMINATE

Steps to reproduce

No response

Model Used

No response

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

marklysze commented 1 day ago

Hi @Lxhnnn, can you provide a code sample that shows the agents and how it's being run?

Also, how are you running inference? Is it through LiteLLM or another API?