Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: Issue-2839: Fixed .NET notebook '07-DALL-E-2' errors (microsoft…
…#3065) ### Motivation and Context Running the .NET notebook '07-DALL-E-2' using OpenAI had 2 errors breaking the experience for new developers. ### Description 1. The configuration attempted to use the **chat** mode 'gpt-3.5-turbo' but with a **Text** completion service. This was fixed by changing the model to 'text-davinci-003' (as is stated in the description above the code box anyway). 2. The embedding comparison code used an extension 'AsReadOnlySpan()' which does not exist for a ReadOnlyMemory<float> which is what is returned by the OpenAI Embedding Generation Service. Fix this by changing it to just access the 'span' that already exists on the ReadOnlyMemory<float> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [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