{"repo":"jodendaal/OpenAI.Net","free":true,"listed":false,"github":"https://github.com/jodendaal/OpenAI.Net","clone":"git clone https://github.com/jodendaal/OpenAI.Net.git","description":"OpenAI library for .NET","language":"C#","stars":127,"topics":["dotnet-core","gpt-3","http-client","nuget-package","openai","dotnet","csharp","gpt3","machine-learning","ml"],"license":"MIT","category":"machine-learning","readme_excerpt":"OpenAI.Net Our .NET OpenAI library is designed for easy integration with the OpenAI API using C#. As a community-maintained library, we ensure it's kept up-to-date and fully tested, supporting .NET Core 6.0 and above. With an intuitive API, our library simplifies the process of working with OpenAI's powerful natural language processing tools. Plus, we handle HTTP client usage to prevent socket exhaustion and DNS update failures, ensuring a smooth and reliable experience for developers. Our library also supports the OpenAI streaming API, allowing developers to process and analyze large volumes of data in real-time. Youtube tutorial : Creating your own ChatGPT clone with .NET: A Step-by-Step Guide Getting started Install package Nuget package Register services using the provided extension methods N.B We recommend using environment variables, configuration files or secret file for storing the API key securely. See here for further details. Example Usage You can view examples of a console, web application and Blazor app using the streaming API here. You can also have a look at the Integration Tests for usage examples here. Simple console app usage below. Configuring Http Client Options The registration extension allows for configuration of the http client via the IHttpClientBuilder interface. This allows for adding a Polly retry policy for example. See example here. Examples Models Types Models type strings can be found in ModelTypes class. Completion Completion Stream Completion","default_branch":null,"files":null,"tree":[],"storefront":"/r/jodendaal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jodendaal/OpenAI.Net/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}