Skip to content

Commit

Permalink
Fix 0.2 Quickstart example llm_config issue (#4060)
Browse files Browse the repository at this point in the history
* fix bug in getting started guide for 0.2 #2038

* remove uneeded submodule

* remove uneeded submodule

* remove unecessary file
  • Loading branch information
victordibia authored Nov 5, 2024
1 parent 5ad2677 commit 9f42888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/Getting-Started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9f42888

Please sign in to comment.