From a4c1314432299605e1ef0777f4c5dc3ba9d6482b Mon Sep 17 00:00:00 2001 From: Lanbao <101860174+lanbaoshen@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:52:29 +0800 Subject: [PATCH] Correct the spelling errors in models.ipynb (#4767) Update models.ipynb Correct the spelling error: opne -> open Co-authored-by: Eric Zhu --- .../src/user-guide/agentchat-user-guide/tutorial/models.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb index 40897cc8c..9e4a47fc7 100644 --- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb +++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb @@ -46,7 +46,7 @@ "source": [ "from autogen_ext.models.openai import OpenAIChatCompletionClient\n", "\n", - "opneai_model_client = OpenAIChatCompletionClient(\n", + "openai_model_client = OpenAIChatCompletionClient(\n", " model=\"gpt-4o-2024-08-06\",\n", " # api_key=\"sk-...\", # Optional if you have an OPENAI_API_KEY environment variable set.\n", ")" @@ -75,7 +75,7 @@ "source": [ "from autogen_core.models import UserMessage\n", "\n", - "result = await opneai_model_client.create([UserMessage(content=\"What is the capital of France?\", source=\"user\")])\n", + "result = await openai_model_client.create([UserMessage(content=\"What is the capital of France?\", source=\"user\")])\n", "print(result)" ] },