CodexSharp 1.0.0

dotnet add package CodexSharp --version 1.0.0                
NuGet\Install-Package CodexSharp -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodexSharp" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodexSharp --version 1.0.0                
#r "nuget: CodexSharp, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodexSharp as a Cake Addin
#addin nuget:?package=CodexSharp&version=1.0.0

// Install CodexSharp as a Cake Tool
#tool nuget:?package=CodexSharp&version=1.0.0                

CodexSharp

CodexSharp is a C# wrapper for OpenAI's Codex API and GPT-3 language model. With this package, you can easily generate natural language text and code completions using the power of AI.

========================= Installation

You can install CodexSharp via NuGet: dotnet add package CodexSharp

========================= Usage

To use CodexSharp, you'll need to obtain an API key from OpenAI. Once you have an API key, you can create an instance of the GPT class and use its GenerateText method to generate text. Here's an example:

using CodexSharp;

var apiKey = "your_api_key_here"; var gpt = new GPT(apiKey);

var prompt = "Once upon a time"; var text = await gpt.GenerateText(prompt);

Console.WriteLine(text);

This code will generate natural language text using OpenAI's GPT-3 model based on the provided prompt.

You can also use CodexSharp to generate code completions and suggestions using the Codex class. Here's an example:

using CodexSharp;

var apiKey = "your_api_key_here"; var codex = new Codex(apiKey);

var prompt = "public static void main"; var completions = await codex.Complete(prompt);

foreach (var completion in completions) { Console.WriteLine(completion.Text); } This code will generate code completions and suggestions using OpenAI's Codex API based on the provided prompt.

For more information on the available options and parameters for text and code generation, please refer to the OpenAI API documentation. https://platform.openai.com/docs/api-reference/introduction

========================= Contributing

If you find a bug or have a feature request, please open an issue on GitHub. Pull requests are also welcome!

========================= License

This project is licensed under the MIT License. See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 220 3/30/2023

Version 1.0.0

Initial release of the OpenAI NuGet package. This package provides a C# wrapper for OpenAI's Codex API and GPT-3 language model, allowing developers to generate natural language text using the power of AI.

Features
Generate natural language text using OpenAI's GPT-3 language model.
Access OpenAI's Codex API to generate code completions and suggestions.
Easy-to-use C# API for seamless integration with your applications.
Supports a variety of options for text generation, including temperature, max tokens, and more.
Lightweight package with minimal dependencies.

Dependencies

Newtonsoft.Json v13.0.1
System.Net.Http v4.3.4

We hope that this package will be useful for developers who want to integrate AI-powered natural language text generation and code completion into their applications. Please let us know if you encounter any issues or have suggestions for future improvements.