Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
smty2018 authored Oct 13, 2023
1 parent d19e257 commit 0bc3844
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,7 @@ from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
# See https://microsoft.github.io/autogen/docs/FAQ#set-your-api-endpoints
# and OAI_CONFIG_LIST_sample
config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")
# You can also set config_list directly as a list, for example,
# config_list = [
# {
# 'model': 'gpt-4',
# 'api_key': '<your OpenAI API key here>',
# }, # OpenAI API endpoint for gpt-4
# {
# 'model': 'gpt-3.5-turbo',
# 'api_key': '<your OpenAI API key here>',
# }, # OpenAI API endpoint for gpt-3.5-turbo
# ]

# You can also set config_list directly as a list, for example, config_list = [{'model': 'gpt-4', 'api_key': '<your OpenAI API key here>'},]
assistant = AssistantAgent("assistant", llm_config={"config_list": config_list})
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"work_dir": "coding"})
user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stock price change YTD.")
Expand Down

0 comments on commit 0bc3844

Please sign in to comment.