MicrosoftDocs / semantic-kernel-docs

Semantic Kernel (SK) is a lightweight SDK enabling integration of AI Large Language Models (LLMs) with conventional programming languages.
MIT License
181 stars 104 forks source link

The .Net samples doesn't work - Corporate proxy and custom SSL chain #82

Open zioalex opened 8 months ago

zioalex commented 8 months ago

Hi there, I've tested some samples under https://github.com/MicrosoftDocs/semantic-kernel-docs/blob/main/samples/dotnet/00-Getting-Started/README.md

And it doesn't work. I am behind a corporate proxy with a custom SSL certificate chain. This could lead to some problem and would be great to know how to make the sample working in such case.

However the problem seems to be another. As written, I have loaded the variable in secret manager. I am using AzureOpenAI therefore I ran dotnet user-secrets set "AzureOpenAI:ChatCompletionDeploymentName" kind of commands.

And uncommented the line builder.Services.AddAzureOpenAIChatCompletion();.

When I try to build and run it I get error:

Severity    Code    Description Project File    Line    Suppression State
Error   CS1501  No overload for method 'AddAzureOpenAIChatCompletion' takes 0 arguments 00-Getting-Started  C:\Users\Source\Repos\semantic-kernel-docs\samples\dotnet\00-Getting-Started\Program.cs 40  Active