KEMBAR78
A broken Template · Issue #48349 · dotnet/sdk · GitHub
Skip to content

A broken Template #48349

@kobubu

Description

@kobubu

Hey, not sure where to post this,
anyways
there is an article
https://devblogs.microsoft.com/dotnet/announcing-dotnet-ai-template-preview1/#using-visual-studio-code-and-the-c#-dev-kit
and if I follow intructions and chose OpenAI as a service provider (Not Azure Open AI) my build simply cannot compile

Image
and if I install OpenAi nuget package latest version 2.1.0 it still doesn't work
I tried 1.9.0 and even 1.3.0
but still

Тип или имя пространства имен "ClientModel" не существует в пространстве имен "System" (возможно, отсутствует ссылка на сборку).
Не удалось найти тип или имя пространства имен "OpenAIClient" (возможно, отсутствует директива using или ссылка на сборку).
Не удалось найти тип или имя пространства имен "OpenAI" (возможно, отсутствует директива using или ссылка на сборку).
Не удалось найти тип или имя пространства имен "ApiKeyCredential" (возможно, отсутствует директива using или ссылка на сборку).
google translate of this:
The type or namespace name 'ClientModel' does not exist in the namespace 'System' (you may be missing an assembly reference).
The type or namespace name 'OpenAIClient' could not be found (you may be missing a using directive or an assembly reference).
The type or namespace name 'OpenAI' could not be found (you may be missing a using directive or an assembly reference).
The type or namespace name 'ApiKeyCredential' could not be found (you may be missing a using directive or an assembly reference).

Image

meanwhile if you chose Azure Open AI as a service provider, it seems to me that everything works well (I don't have Azure acc or smth though)

P.S If I use dotnet new install Microsoft.Extensions.AI.Templates
a get a Microsoft.Extensions.AI.Templates::9.4.0-preview.1.25207.5
Thanks in advance!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions