Browse Source

Merge pull request #22050 from abpframework/berkan/add-warning-to-community-article

Add security info to OpenAI integration article
pull/22051/head
Engincan VESKE 2 years ago
committed by GitHub
parent
commit
ee7826e153
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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