From 9f428880b3617572603decd13fc44432d66e2dd1 Mon Sep 17 00:00:00 2001 From: Victor Dibia Date: Mon, 4 Nov 2024 19:58:01 -0800 Subject: [PATCH] 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 --- website/docs/Getting-Started.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/Getting-Started.mdx b/website/docs/Getting-Started.mdx index 761ed6f3d3..291345c6f0 100644 --- a/website/docs/Getting-Started.mdx +++ b/website/docs/Getting-Started.mdx @@ -45,7 +45,7 @@ pip install autogen-agentchat~=0.2 import os from autogen import AssistantAgent, UserProxyAgent -llm_config = {"model": "gpt-4", "api_key": os.environ["OPENAI_API_KEY"]} +llm_config = { "config_list": [{ "model": "gpt-4", "api_key": os.environ.get("OPENAI_API_KEY") }] } assistant = AssistantAgent("assistant", llm_config=llm_config) user_proxy = UserProxyAgent("user_proxy", code_execution_config=False)