Closed Roybott closed 1 year ago
It also seems like other parts of this notebook are broken and it should be fully reviewed.
For example, when running the next code block that generates an image, I got an error about the model not being supported on the text completion endpoint and that it suggested calling the Chat completion service instead.
This can be fixed by changing the code in the kernel setup code block to use builder.WithOpenAIChatCompletionService
instead of WithOpenAITextCompletionService
.
@Roybott - thanks for finding this. Feel free to do a PR if you can on this.
@Roybott - thanks for finding this. Feel free to do a PR if you can on this.
@evchaki I created a PR here: https://github.com/microsoft/semantic-kernel/pull/3065
The dotnet code to create the kernel in the 07-DALL-E-2 notebook has an error when using OpenAI (not Azure), which results in the following error message:
due to the code:
else { builder.WithOpenAITextEmbeddingGenerationService("text-embedding-ada-002", orgId); builder.WithOpenAITextCompletionService("gpt-3.5-turbo", orgId); builder.WithOpenAIImageGenerationService(apiKey, orgId); }
The issue is the 'orgId' is passed in as the second parameter for the first two lines rather than the apiKey, the correct code should be:
else { builder.WithOpenAITextEmbeddingGenerationService("text-embedding-ada-002", apiKey, orgId); builder.WithOpenAITextCompletionService("gpt-3.5-turbo", apiKey, orgId); builder.WithOpenAIImageGenerationService(apiKey, orgId); }