Skip to content

Commit

Permalink
Python: Update Python notebooks to use release 0.3.15 (microsoft#3513)
Browse files Browse the repository at this point in the history
### Motivation and Context

Python Notebooks were out of date

### Description

- Bump the version
- Use OpenAI default in all notebooks

### Contribution Checklist

- [x] The code builds clean without any errors or warnings
- [x] 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
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
  • Loading branch information
markwallace-microsoft authored Nov 15, 2023
1 parent 3c7baae commit 3eda2f0
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 20 deletions.
2 changes: 1 addition & 1 deletion python/notebooks/00-getting-started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/01-basic-loading-the-kernel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/02-running-prompts-from-file.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/03-semantic-function-inline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/04-context-variables-chat.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
10 changes: 1 addition & 9 deletions python/notebooks/05-using-the-planner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"\n",
"kernel = sk.Kernel()\n",
"\n",
"useAzureOpenAI = True\n",
"useAzureOpenAI = False\n",
"\n",
"# Configure AI backend used by the kernel\n",
"if useAzureOpenAI:\n",
Expand Down Expand Up @@ -628,14 +628,6 @@
" if len(step._outputs) > 0:\n",
" print( \" Output:\\n\", str.replace(result[step._outputs[0]],\"\\n\", \"\\n \"))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4652ac81",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/06-memory-and-embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/07-hugging-face-for-skills.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0\n",
"!python -m pip install semantic-kernel==0.3.15.dev0\n",
"\n",
"# Note that additional dependencies are required for the Hugging Face connectors:\n",
"!python -m pip install torch==2.0.0\n",
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/08-native-function-inline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/09-groundedness-checking.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"\n",
"kernel = sk.Kernel()\n",
"\n",
"useAzureOpenAI = True\n",
"useAzureOpenAI = False\n",
"\n",
"# Configure AI service used by the kernel\n",
"if useAzureOpenAI:\n",
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/10-multiple-results-per-prompt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion python/notebooks/11-streaming-completions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -m pip install semantic-kernel==0.3.10.dev0"
"!python -m pip install semantic-kernel==0.3.15.dev0"
]
},
{
Expand Down

0 comments on commit 3eda2f0

Please sign in to comment.