Skip to content

Commit

Permalink
Error fix (#113)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
bscolinos and kesmit13 authored Sep 3, 2024
1 parent d4b6bb5 commit 66440ce
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions notebooks/building-a-multi-agent-ai-app-with-autogen/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,20 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "e4291e67",
"metadata": {},
"outputs": [],
"source": [
"import autogen\n",
"from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent\n",
"from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent\n",
"from autogen import config_list_from_json\n",
"from autogen import AssistantAgent"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "96420b79-707a-491e-a027-dae10c47a7cd",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -210,30 +224,15 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 10,
"id": "fdeff3db-e4bf-4f01-b6e0-6aad1986badc",
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ[\"OPENAI_API_KEY\"] =\n",
"os.environ[\"AUTOGEN_USE_DOCKER\"] = \"False\""
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "c57ffc6b-4c78-4097-b917-69f9c3a745e7",
"metadata": {},
"outputs": [],
"source": [
"import autogen\n",
"from autogen.agentchat.contrib.retrieve_assistant_agent import RetrieveAssistantAgent\n",
"from autogen.agentchat.contrib.retrieve_user_proxy_agent import RetrieveUserProxyAgent\n",
"from autogen import config_list_from_json\n",
"from autogen import AssistantAgent"
]
},
{
"cell_type": "code",
"execution_count": 11,
Expand Down

0 comments on commit 66440ce

Please sign in to comment.