stepfun-ai/GOT-OCR2_0
Image-Text-to-Text
•
Updated
•
751k
•
1.23k
from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
#config
config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")
assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding", "use_docker": False})
user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")
# This initiates an automated chat between the two agents to solve the task