Skip to content

.NET + AI template breaks when using the OpenAI model provider #6271

@jmatthiesen

Description

@jmatthiesen

Description

With the latest update of the .NET + AI template (aichatweb), I found that the OpenAI model provider does not work. If I choose that provider and try to create a project, I get the following errors on build:

Image

Reproduction Steps

Steps to repro:

  1. Install the template using dotnet new install Microsoft.Extensions.AI.Templates
  2. Create a new project using the template, I used it from Visual Studio.
  3. For the AI Service Provider option, choose OpenAI.
  4. Create the project.
  5. Build the project.

Expected behavior

No errors, I can build and then run the project

Actual behavior

You'll see the error messages shown in the image above.

Regression?

Yes, this worked in the Preview 1 release of the template.

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

area-ai-templatesMicrosoft.Extensions.AI.TemplatesbugThis issue describes a behavior which is not expected - a bug.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions