From 5ad267707df885dfe4a8fd776f99b707fcc742ee Mon Sep 17 00:00:00 2001 From: Luke Hsiao Date: Wed, 23 Oct 2024 11:14:08 -0600 Subject: [PATCH 1/2] docs: fix bullet formatting for kubernetes pod executor (#3911) While the bullets are rendered correctly in GitHub when looking at this file, the bullet formatting is incorrect on the actual documentation site [[1]]. This patch adds a newline to fix that formatting. A screenshot of the incorrect formatting on the site is included in the PR. [1]: https://microsoft.github.io/autogen/0.2/docs/topics/code-execution/kubernetes-pod-commandline-code-executor --- .../kubernetes-pod-commandline-code-executor.ipynb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/docs/topics/code-execution/kubernetes-pod-commandline-code-executor.ipynb b/website/docs/topics/code-execution/kubernetes-pod-commandline-code-executor.ipynb index 2cad17e0deb5..496003c1c8ee 100644 --- a/website/docs/topics/code-execution/kubernetes-pod-commandline-code-executor.ipynb +++ b/website/docs/topics/code-execution/kubernetes-pod-commandline-code-executor.ipynb @@ -15,6 +15,7 @@ "It functions similarly to the `DockerCommandLineCodeExecutor`, but specifically creates container within Kubernetes environments.\n", "\n", "There are two condition to use PodCommandLineCodeExecutor.\n", + "\n", "- Access to a Kubernetes cluster\n", "- installation `autogen` with the extra requirements `'pyautogen[kubernetes]'`\n", "\n", @@ -38,6 +39,7 @@ "metadata": {}, "source": [ "There are four options PodCommandLineCodeExecutor to access kubernetes API server.\n", + "\n", "- default kubeconfig file path: `~/.kube/config`\n", "- Provide a custom kubeconfig file path using the `kube_config_file` argument of `PodCommandLineCodeExecutor`.\n", "- Set the kubeconfig file path using the `KUBECONFIG` environment variable.\n", From 9f428880b3617572603decd13fc44432d66e2dd1 Mon Sep 17 00:00:00 2001 From: Victor Dibia Date: Mon, 4 Nov 2024 19:58:01 -0800 Subject: [PATCH 2/2] 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 761ed6f3d34d..291345c6f03d 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)