Over 10 years we help companies reach their financial and branding goals. Engitech is a values-driven technology agency dedicated.

Gallery

Contacts

411 University St, Seattle, USA

engitech@oceanthemes.net

+1 -800-456-478-23

Technology

Implementing OpenAI API in .NET Core

OpenAI does not have an official .NET client library for its API but amazing folks in the open-source community have built a few.

Based on the open-source client library we have built some sample applications on how to implement various OpenAI APIs in the .Net Core application. Please check it out on our GitHub.

#1 Instant bedtime story generator

Implemented basic chat API to generate short bedtime stories on a given topic. Also, we are using SignalR to display responses in real-time.

#2 Q&A on Custom Data (using Embedding API)

Uses OpenAI GPT and Embedding API to build a simple Q&A application. For data, right now I am using Winter 2022 Olympics articles. Also uses SignalR to display the response in real time!. I am using OpenAI example application as a reference. OpenAI example is in Python and this one is in Netcore 7. I have also used OpenAI and SharpToken Nuget Package. Both Nuget packages are community-built.

Cheers