Skip to content

Commit 2b94161

Browse files
Python: Update 00-getting-started.ipynb (microsoft#2766)
deployment name is required instead of kernel.add_chat_service("chat_completion", AzureChatCompletion("gpt-35-turbo", endpoint, api_key)) Fixes microsoft#2772 ### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? For notebook to work. 2. What problem does it solve? current fails with error deployment not exist. 3. What scenario does it contribute to? Getting started 7. If it fixes an open issue, please link to the issue here. --> ### Description <!-- Just replaced hardcoded deployment name to use deployment parameter from .env file! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄 Co-authored-by: Lee Miller <[email protected]>
1 parent 34456aa commit 2b94161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/notebooks/00-getting-started.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"\n",
8989
"deployment, api_key, endpoint = sk.azure_openai_settings_from_dot_env()\n",
9090
"\n",
91-
"kernel.add_chat_service(\"chat_completion\", AzureChatCompletion(\"gpt-35-turbo\", endpoint, api_key))\n"
91+
"kernel.add_chat_service(\"chat_completion\", AzureChatCompletion(deployment, endpoint, api_key))\n"
9292
]
9393
},
9494
{

0 commit comments

Comments
 (0)