Browse Source

Add security info to OpenAI integration article

pull/22050/head
Berkan Sasmaz 2 years ago
parent
commit
8b4ddcce33
  1. 2
      docs/en/Community-Articles/2024-12-01-OpenAI-Integration/POST.md

2
docs/en/Community-Articles/2024-12-01-OpenAI-Integration/POST.md

@ -62,6 +62,8 @@ dotnet add package Microsoft.Extensions.AI.OpenAI --prerelease
> Replace the value of the `Key` with your OpenAI API key.
> **Important Security Note**: Storing sensitive information like API keys in `appsettings.json` is not recommended due to security concerns. Please refer to the [official Microsoft documentation](https://learn.microsoft.com/en-us/aspnet/core/security/app-secrets) for secure secret management best practices.
Next, add the following code to the `ConfigureServices` method in `OpenAIIntegrationBlazorModule`:
```csharp

Loading…
Cancel
Save