Skip to content

Commit a4d9ce8

Browse files
fix typos in function helper text (#503)
* fix typos in autogen/agentchat/conversable_agent.py * fix typos in autogen/code_utils.py * fix typos in autogen/oai/completion.py * fix typos in test/agentchat/test_assistant_agent.py * Update test/agentchat/test_assistant_agent.py Co-authored-by: Chi Wang <[email protected]> --------- Co-authored-by: Chi Wang <[email protected]>
1 parent 75cc763 commit a4d9ce8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

autogen/agentchat/conversable_agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ def generate_init_message(self, **context) -> Union[str, Dict]:
11951195
"""Generate the initial message for the agent.
11961196
11971197
Override this function to customize the initial message based on user's request.
1198-
If not overriden, "message" needs to be provided in the context.
1198+
If not overridden, "message" needs to be provided in the context.
11991199
"""
12001200
return context["message"]
12011201

autogen/oai/completion.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def _eval(cls, config: dict, prune=True, eval_only=False):
340340
config (dict): Hyperparameter setting for the openai api call.
341341
prune (bool, optional): Whether to enable pruning. Defaults to True.
342342
eval_only (bool, optional): Whether to evaluate only
343-
(ignore the inference budget and do not rasie error when a request fails).
343+
(ignore the inference budget and do not raise error when a request fails).
344344
Defaults to False.
345345
346346
Returns:
@@ -949,7 +949,7 @@ def eval_func(responses, **data):
949949
return_responses_and_per_instance_result (bool): Whether to also return responses
950950
and per instance results in addition to the aggregated results.
951951
logging_level (optional): logging level. Defaults to logging.WARNING.
952-
**config (dict): parametes passed to the openai api call `create()`.
952+
**config (dict): parameters passed to the openai api call `create()`.
953953
954954
Returns:
955955
None when no valid eval_func is provided in either test or tune;

test/agentchat/test_assistant_agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_ai_user_proxy_agent():
4444
llm_config={
4545
"config_list": config_list,
4646
},
47-
# In the system message the "user" always refers to ther other agent.
47+
# In the system message the "user" always refers to the other agent.
4848
system_message="You ask a user for help. You check the answer from the user and provide feedback.",
4949
)
5050
assistant.reset()

0 commit comments

Comments
 (0)