-
Book Overview & Buying
-
Table Of Contents
Blazor WebAssembly by Example - Third Edition
By :
Integrating OpenAI into your .NET applications offers a sophisticated way to leverage state-of-the-art machine learning without requiring deep expertise in data science or model architecture. By utilizing these pre-trained models, you can incorporate advanced capabilities such as natural language understanding, complex reasoning, and content generation directly into your Blazor WebAssembly applications.
To begin using OpenAI, you need to create a secret API key. The following screenshot shows the dialog used to create a secret API key:

Figure 14.2 – OpenAI Create new secret key dialog
The API key gives your application secure, programmatic access to OpenAI's models and services. Make sure to copy and store it securely immediately upon creation.
Keep your API key secret. Never commit it to Git or any other source-control system. Instead, store it in user-secrets, environment variables, or a secure configuration provider such as Azure Key Vault...