Skip to content

Commit

Permalink
Correct the spelling errors in models.ipynb (#4767)
Browse files Browse the repository at this point in the history
Update models.ipynb

Correct the spelling error: opne -> open

Co-authored-by: Eric Zhu <[email protected]>
  • Loading branch information
lanbaoshen and ekzhu authored Dec 20, 2024
1 parent c989181 commit a4c1314
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
")"
Expand Down Expand Up @@ -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)"
]
},
Expand Down

0 comments on commit a4c1314

Please sign in to comment.