- Azure OpenAI Service のリソースを作成し gpt 3.5 turbo のモデルを
gpt-35-turbo
という名前でデプロイします。 SmartPasteApp
プロジェクトのappsettings.json
にEndpoint
とApiKey
を設定します。{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*", "SmartPasteOptions": { "DeploymentName": "gpt-35-turbo", "Endpoint": "https://<<Azure OpenAI Service のリソース名>>.openai.azure.com/", "ApiKey": "<<Azure OpenAI Service の API キー>>" } }
- Visual Studio で
SmartPasteApp
プロジェクトを開き、デバッグ実行します。 - クリップボードにテキストがある状態で
Smart Paste
ボタンを押してください。
SmartPasteLib
プロジェクトの以下のクラスが Smart paste の実装に関連するクラスになります。
SmartPastePlaneFunctionCalling.cs
- Azure OpenAI Service の Tools の関数呼び出しの機能を使って、Smart Paste を実装しています。
SmartPaste.cs
- Semantic Kernel の
FunctionCallingStepwisePlanner
を使って、Smart Paste を実装しています。
- Semantic Kernel の