Skip to content

Commit a0787ac

Browse files
authored
pre-commit version update and a few spelling fixes (microsoft#2913)
1 parent 53a59dd commit a0787ac

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.5.0
11+
rev: v4.6.0
1212
hooks:
1313
- id: check-added-large-files
1414
- id: check-ast
@@ -23,21 +23,21 @@ repos:
2323
- id: end-of-file-fixer
2424
- id: no-commit-to-branch
2525
- repo: https://github.com/psf/black
26-
rev: 24.3.0
26+
rev: 24.4.2
2727
hooks:
2828
- id: black
2929
- repo: https://github.com/astral-sh/ruff-pre-commit
30-
rev: v0.3.4
30+
rev: v0.4.8
3131
hooks:
3232
- id: ruff
3333
types_or: [ python, pyi, jupyter ]
3434
args: ["--fix", "--ignore=E402"]
3535
exclude: notebook/agentchat_databricks_dbrx.ipynb
3636
- repo: https://github.com/codespell-project/codespell
37-
rev: v2.2.6
37+
rev: v2.3.0
3838
hooks:
3939
- id: codespell
40-
args: ["-L", "ans,linar,nam,tread,ot,"]
40+
args: ["-L", "ans,linar,nam,tread,ot,assertIn,dependin,socio-economic"]
4141
exclude: |
4242
(?x)^(
4343
pyproject.toml |

autogen/oai/gemini.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def create(self, params: Dict) -> ChatCompletion:
151151
if not model_name:
152152
raise ValueError(
153153
"Please provide a model name for the Gemini Client. "
154-
"You can configurate it in the OAI Config List file. "
154+
"You can configure it in the OAI Config List file. "
155155
"See this [LLM configuration tutorial](https://microsoft.github.io/autogen/docs/topics/llm_configuration/) for more details."
156156
)
157157

notebook/agentchat_groupchat_stateflow.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"- Scientist: Read the papers and write a summary.\n",
7575
"\n",
7676
"\n",
77-
"In the Figure, we define a simple workflow for research with 4 states: Init, Retrieve, Reserach and End. Within each state, we will call different agents to perform the tasks.\n",
77+
"In the Figure, we define a simple workflow for research with 4 states: Init, Retrieve, Research and End. Within each state, we will call different agents to perform the tasks.\n",
7878
"- Init: We use the initializer to start the workflow.\n",
7979
"- Retrieve: We will first call the coder to write code and then call the executor to execute the code.\n",
8080
"- Research: We will call the scientist to read the papers and write a summary.\n",

test/oai/_test_completion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
import sys
66
from functools import partial
7-
from test.oai.test_utils import KEY_LOC, OAI_CONFIG_LIST
87

98
import datasets
109
import numpy as np
@@ -18,6 +17,7 @@
1817
implement,
1918
)
2019
from autogen.math_utils import eval_math_responses, solve_problem
20+
from test.oai.test_utils import KEY_LOC, OAI_CONFIG_LIST
2121

2222
here = os.path.abspath(os.path.dirname(__file__))
2323

website/blog/2024-01-23-Code-execution-in-docker/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ user_proxy.initiate_chat(assistant, message="Plot a chart of NVDA and TESLA stoc
3333

3434
To opt out of from this default behaviour there are some options.
3535

36-
### Diasable code execution entirely
36+
### Disable code execution entirely
3737

3838
- Set `code_execution_config` to `False` for each code-execution agent. E.g.:
3939

website/blog/2024-02-29-StateFlow/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ scientist = autogen.AssistantAgent(
102102
)
103103
```
104104

105-
In the Figure, we define a simple workflow for research with 4 states: Init, Retrieve, Reserach, and End. Within each state, we will call different agents to perform the tasks.
105+
In the Figure, we define a simple workflow for research with 4 states: Init, Retrieve, Research, and End. Within each state, we will call different agents to perform the tasks.
106106
- Init: We use the initializer to start the workflow.
107107
- Retrieve: We will first call the coder to write code and then call the executor to execute the code.
108108
- Research: We will call the scientist to read the papers and write a summary.

website/blog/2024-05-24-Agent/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ better with low cost. [EcoAssistant](/blog/2023/11/09/EcoAssistant) is a good ex
141141
142142
- [AutoDefense](/blog/2024/03/11/AutoDefense/Defending%20LLMs%20Against%20Jailbreak%20Attacks%20with%20AutoDefense) demonstrates that using multi-agents reduces the risk of suffering from jailbreak attacks.
143143

144-
There are certainly tradeoffs to make. The large design space of multi-agents offers these tradeoffs and opens up new opportunites for optimization.
144+
There are certainly tradeoffs to make. The large design space of multi-agents offers these tradeoffs and opens up new opportunities for optimization.
145145

146146
> Over a year since the debut of Ask AT&T, the generative AI platform to which we’ve onboarded over 80,000 users, AT&T has been enhancing its capabilities by incorporating 'AI Agents'. These agents, powered by the Autogen framework pioneered by Microsoft (https://microsoft.github.io/autogen/blog/2023/12/01/AutoGenStudio/), are designed to tackle complicated workflows and tasks that traditional language models find challenging. To drive collaboration, AT&T is contributing back to the open-source project by introducing features that facilitate enhanced security and role-based access for various projects and data.
147147
>

0 commit comments

Comments
 (0)