Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Add option for Azure OpenAI to notebook sample 06 #1529

Merged
merged 5 commits into from
Jun 20, 2023

Conversation

mathyousee
Copy link
Contributor

@mathyousee mathyousee commented Jun 16, 2023

Motivation and Context

This is addressing issue 1528

Description

In the Jupyter notebook for Python sample 06-memory-and-embeddings, I updated the sample to include support for Azure OpenAI.

This includes:

  • Importing classes for AzureTextCompletion and AzureTextEmbedding,
  • Adding a switch to choose OpenAI or Azure OpenAI Service.

Contribution Checklist

@alexchaomander alexchaomander added the python Pull requests for the Python Semantic Kernel label Jun 16, 2023
Copy link
Contributor

@alexchaomander alexchaomander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@alexchaomander alexchaomander added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label Jun 16, 2023
@teresaqhoang teresaqhoang requested a review from a team as a code owner June 19, 2023 21:08
@github-actions github-actions bot removed the python Pull requests for the Python Semantic Kernel label Jun 19, 2023
@lemillermicrosoft lemillermicrosoft linked an issue Jun 20, 2023 that may be closed by this pull request
@lemillermicrosoft lemillermicrosoft added this pull request to the merge queue Jun 20, 2023
Merged via the queue into microsoft:main with commit 4f4dbd5 Jun 20, 2023
5 checks passed
@lemillermicrosoft lemillermicrosoft added this to the Sprint 33 milestone Jun 20, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
…1529)

### Motivation and Context
This is addressing issue
[1528](microsoft#1528)

### Description
In the Jupyter notebook for Python sample
[06-memory-and-embeddings](https://github.com/microsoft/semantic-kernel/blob/main/samples/notebooks/python/06-memory-and-embeddings.ipynb),
I updated the sample to include support for Azure OpenAI.

This includes: 
- Importing classes for AzureTextCompletion and AzureTextEmbedding, 
- Adding a switch to choose OpenAI or Azure OpenAI Service.

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows SK Contribution Guidelines
(https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
- [x] The code follows the .NET coding conventions
(https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions)
verified with `dotnet format`
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄

---------

Co-authored-by: Teresa Hoang <125500434+teresaqhoang@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ready to merge PR has been approved by all reviewers, and is ready to merge.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Python notebook embeddings sample - add Azure OpenAI Service
5 participants