Skip to content

Commit

Permalink
updated property, gpt model and user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerprogramming committed Jan 9, 2024
1 parent 04df6b5 commit 5eaa10d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions autogentest/OAI_CONFIG_LIST
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"model": "gpt-3.5-turbo",
"api_key": "your-api-key"
"model": "gpt-4",
"api_key": "sk-1111"
}
]
15 changes: 9 additions & 6 deletions autogentest/saas_customer_survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"config_list": config_list,
"seed": 53,
"temperature": 0,
"request_timeout": 300
"timeout": 300
}

user_proxy = UserProxyAgent(
name="Admin",
system_message="A human admin. Interact with the planner to discuss the plan. Plan execution needs to be approved "
"by this admin.",
code_execution_config=False,
name="Admin",
system_message="A human admin. Interact with the planner to discuss the plan. Plan execution needs to be approved "
"by this admin.",
code_execution_config=False,
human_input_mode="NEVER",
default_auto_reply="..."
)

engineer = AssistantAgent(
Expand Down Expand Up @@ -41,6 +43,7 @@
name="Executor",
system_message="Executor. Execute the code written by the engineer and report the result.",
code_execution_config={"last_n_messages": 3, "work_dir": "feedback"},
llm_config=llm_config
)

critic = AssistantAgent(
Expand All @@ -49,7 +52,7 @@
llm_config=llm_config,
)

groupchat = GroupChat(agents=[user_proxy, engineer, planner, executor, critic], messages=[], max_round=50)
groupchat = GroupChat(agents=[user_proxy, engineer, planner, executor, critic], messages=[], max_round=14)
manager = GroupChatManager(groupchat=groupchat, llm_config=llm_config)

user_proxy.initiate_chat(manager, message="I would like to build a simple website that collects feedback from "
Expand Down

0 comments on commit 5eaa10d

Please sign in to comment.