From 957cdbf4dd089c36802721b0850fc8c701af62ff Mon Sep 17 00:00:00 2001 From: Surav Shrestha Date: Tue, 31 Oct 2023 21:20:47 +0545 Subject: [PATCH 1/5] fix typos in autogen/agentchat/conversable_agent.py --- autogen/agentchat/conversable_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/agentchat/conversable_agent.py b/autogen/agentchat/conversable_agent.py index 3a0e19598813..f8af33be134c 100644 --- a/autogen/agentchat/conversable_agent.py +++ b/autogen/agentchat/conversable_agent.py @@ -1006,7 +1006,7 @@ def generate_init_message(self, **context) -> Union[str, Dict]: """Generate the initial message for the agent. Override this function to customize the initial message based on user's request. - If not overriden, "message" needs to be provided in the context. + If not overridden, "message" needs to be provided in the context. """ return context["message"] From d98352fa720ec3af8e6cd52d197e20b4d542f36b Mon Sep 17 00:00:00 2001 From: Surav Shrestha Date: Tue, 31 Oct 2023 21:21:03 +0545 Subject: [PATCH 2/5] fix typos in autogen/code_utils.py --- autogen/code_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/code_utils.py b/autogen/code_utils.py index caaf09072850..613c003e2a5c 100644 --- a/autogen/code_utils.py +++ b/autogen/code_utils.py @@ -96,7 +96,7 @@ def extract_code( # Make sure to add the right "python" or "sh" identifier if the language identifier is missing for a code block. # Don't make other changes to the code blocks. # Don't reply anything else if at least one code block is expected to run. -# If no code block is expeted to run, check whether the task has been successfully finished at full satisfaction. +# If no code block is expected to run, check whether the task has been successfully finished at full satisfaction. # If not, reply with the reason why the task is not finished.""", # }, # ] From 3cd4399f7d172549dcc0abdcc0fa08e526009b0f Mon Sep 17 00:00:00 2001 From: Surav Shrestha Date: Tue, 31 Oct 2023 21:21:19 +0545 Subject: [PATCH 3/5] fix typos in autogen/oai/completion.py --- autogen/oai/completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen/oai/completion.py b/autogen/oai/completion.py index a720ccc24466..b5caa5f73712 100644 --- a/autogen/oai/completion.py +++ b/autogen/oai/completion.py @@ -342,7 +342,7 @@ def _eval(cls, config: dict, prune=True, eval_only=False): config (dict): Hyperparameter setting for the openai api call. prune (bool, optional): Whether to enable pruning. Defaults to True. eval_only (bool, optional): Whether to evaluate only - (ignore the inference budget and do not rasie error when a request fails). + (ignore the inference budget and do not raise error when a request fails). Defaults to False. Returns: @@ -944,7 +944,7 @@ def eval_func(responses, **data): return_responses_and_per_instance_result (bool): Whether to also return responses and per instance results in addition to the aggregated results. logging_level (optional): logging level. Defaults to logging.WARNING. - **config (dict): parametes passed to the openai api call `create()`. + **config (dict): parameters passed to the openai api call `create()`. Returns: None when no valid eval_func is provided in either test or tune; From 33228d1ed99d06ae91aa5c08998bd209468f296a Mon Sep 17 00:00:00 2001 From: Surav Shrestha Date: Tue, 31 Oct 2023 21:21:32 +0545 Subject: [PATCH 4/5] fix typos in test/agentchat/test_assistant_agent.py --- test/agentchat/test_assistant_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/agentchat/test_assistant_agent.py b/test/agentchat/test_assistant_agent.py index 1239bde453b9..463e22745187 100644 --- a/test/agentchat/test_assistant_agent.py +++ b/test/agentchat/test_assistant_agent.py @@ -44,7 +44,7 @@ def test_ai_user_proxy_agent(): llm_config={ "config_list": config_list, }, - # In the system message the "user" always refers to ther other agent. + # In the system message the "user" always refers to their other agent. system_message="You ask a user for help. You check the answer from the user and provide feedback.", ) assistant.reset() From 9836880f376d9c228d2eeb29532630558a9b71e9 Mon Sep 17 00:00:00 2001 From: Surav Shrestha <148626286+shresthasurav@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:50:07 +0545 Subject: [PATCH 5/5] Update test/agentchat/test_assistant_agent.py Co-authored-by: Chi Wang --- test/agentchat/test_assistant_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/agentchat/test_assistant_agent.py b/test/agentchat/test_assistant_agent.py index 463e22745187..803c879a3fc4 100644 --- a/test/agentchat/test_assistant_agent.py +++ b/test/agentchat/test_assistant_agent.py @@ -44,7 +44,7 @@ def test_ai_user_proxy_agent(): llm_config={ "config_list": config_list, }, - # In the system message the "user" always refers to their other agent. + # In the system message the "user" always refers to the other agent. system_message="You ask a user for help. You check the answer from the user and provide feedback.", ) assistant.reset()