Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos in function helper text #503

Merged
merged 6 commits into from
Nov 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,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"]

Expand Down
4 changes: 2 additions & 2 deletions autogen/oai/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,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:
Expand Down Expand Up @@ -949,7 +949,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;
Expand Down
2 changes: 1 addition & 1 deletion test/agentchat/test_assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 the other agent.
system_message="You ask a user for help. You check the answer from the user and provide feedback.",
)
assistant.reset()
Expand Down
Loading