From the course: Complete Guide to Dapr for .NET and Azure Developers: Building and Managing Microservices
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Creating the conversation component
From the course: Complete Guide to Dapr for .NET and Azure Developers: Building and Managing Microservices
Creating the conversation component
- [Instructor] We can see here in the documentation that the Conversation building block supports different providers such as Anthropic, Huggingface, and OpenAI. In fact, this is the component that I want to create in this video. But of course, I need a key. So let's open the OpenAI platform dashboard. Here in the dashboard, we can see that I have enough balance, and then we can see that I created this key. And I already pasted the key here in the secrets.json file. So let's go back to the browser and let's copy the contents. And now let's open Visual Studio Code. Let's create a new file named wisdom-conversation.yaml. And let's paste the contents. And I want this to be wisdomconversation, and I also need the key. However, I want to use the secrets, that's why I'm going to remove the value, and I'm going to use secretKeyRef, and the name is openai and the value is also openai. And finally, I need to specify the secretStore, which is wisdomsecretstore. And now we're ready to use the…