Skip to content

Commit 66440ce

Browse files
bscolinoskesmit13
andauthored
Error fix (#113)
* Error fix Removed duplicate os.environ["OPENAI_API_KEY"] = Moved imports above class definition to fix error that came from calling beofre importing. * Update notebook.ipynb --------- Co-authored-by: Kevin D Smith <kevin.smith@octobergray.com>
1 parent d4b6bb5 commit 66440ce

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

notebooks/building-a-multi-agent-ai-app-with-autogen/notebook.ipynb

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@
161161
{
162162
"cell_type": "code",
163163
"execution_count": 8,
164+
"id": "e4291e67",
165+
"metadata": {},
166+
"outputs": [],
167+
"source": [
168+
"import autogen\n",
169+
"from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent\n",
170+
"from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent\n",
171+
"from autogen import config_list_from_json\n",
172+
"from autogen import AssistantAgent"
173+
]
174+
},
175+
{
176+
"cell_type": "code",
177+
"execution_count": 9,
164178
"id": "96420b79-707a-491e-a027-dae10c47a7cd",
165179
"metadata": {},
166180
"outputs": [],
@@ -210,30 +224,15 @@
210224
},
211225
{
212226
"cell_type": "code",
213-
"execution_count": 9,
227+
"execution_count": 10,
214228
"id": "fdeff3db-e4bf-4f01-b6e0-6aad1986badc",
215229
"metadata": {},
216230
"outputs": [],
217231
"source": [
218232
"import os\n",
219-
"os.environ[\"OPENAI_API_KEY\"] =\n",
220233
"os.environ[\"AUTOGEN_USE_DOCKER\"] = \"False\""
221234
]
222235
},
223-
{
224-
"cell_type": "code",
225-
"execution_count": 10,
226-
"id": "c57ffc6b-4c78-4097-b917-69f9c3a745e7",
227-
"metadata": {},
228-
"outputs": [],
229-
"source": [
230-
"import autogen\n",
231-
"from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent\n",
232-
"from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent\n",
233-
"from autogen import config_list_from_json\n",
234-
"from autogen import AssistantAgent"
235-
]
236-
},
237236
{
238237
"cell_type": "code",
239238
"execution_count": 11,

0 commit comments

Comments
 (0)