Skip to content

Commit 9f42888

Browse files
authored
Fix 0.2 Quickstart example llm_config issue (#4060)
* fix bug in getting started guide for 0.2 #2038 * remove uneeded submodule * remove uneeded submodule * remove unecessary file
1 parent 5ad2677 commit 9f42888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/Getting-Started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pip install autogen-agentchat~=0.2
4545
import os
4646
from autogen import AssistantAgent, UserProxyAgent
4747

48-
llm_config = {"model": "gpt-4", "api_key": os.environ["OPENAI_API_KEY"]}
48+
llm_config = { "config_list": [{ "model": "gpt-4", "api_key": os.environ.get("OPENAI_API_KEY") }] }
4949
assistant = AssistantAgent("assistant", llm_config=llm_config)
5050
user_proxy = UserProxyAgent("user_proxy", code_execution_config=False)
5151

0 commit comments

Comments
 (0)