Azure OpenAI プロバイダー
Azure OpenAI プロバイダーは、Reveal SDK AI を Azure の OpenAI Service と統合し、エンタープライズグレードのセキュリティとコンプライアンスを備えた独自の Azure サブスクリプションにデプロイされた OpenAI モデルを使用できます。
インストール
Azure OpenAI プロバイダーの NuGet パッケージをインストールします:
dotnet add package Reveal.Sdk.AI.AzureOpenAI
設定
基本セットアップ
Program.cs で Azure OpenAI プロバイダーを追加します:
using Reveal.Sdk;
using Reveal.Sdk.AI;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers().AddReveal();
builder.Services.AddRevealAI()
.AddAzureOpenAI(options =>
{
options.ApiKey = builder.Configuration["RevealAI:AzureOpenAI:ApiKey"];
options.Endpoint = "https://your-resource-name.openai.azure.com/";
options.DeploymentName = "gpt-4o";
});
var app = builder.Build();
app.MapControllers();
app.Run();