OpenAIGenerator 0.5.0

dotnet add package OpenAIGenerator --version 0.5.0                
NuGet\Install-Package OpenAIGenerator -Version 0.5.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="OpenAIGenerator" Version="0.5.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OpenAIGenerator --version 0.5.0                
#r "nuget: OpenAIGenerator, 0.5.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 OpenAIGenerator as a Cake Addin
#addin nuget:?package=OpenAIGenerator&version=0.5.0

// Install OpenAIGenerator as a Cake Tool
#tool nuget:?package=OpenAIGenerator&version=0.5.0                

OpenAIGenerator

Source generator, which allows you to add prompts from which code will be generated in deterministic mode

Usage

  1. Install package from nuget - https://www.nuget.org/packages/OpenAIGenerator/
  2. Add API key to your project file:
  <PropertyGroup>
    <OpenAIGenerator_ApiKey>$(API_KEY)</OpenAIGenerator_ApiKey>
  </PropertyGroup>
  1. Add .prompt files to your project like this:
Write simple calculator class in C#. It should have 2 methods: Add and Multiply.
Both methods should take 2 arguments and return result.
You can use only + and * operators.
You can't use any other methods or classes.

Settings

  <PropertyGroup>
    <OpenAIGenerator_SystemMessage>You are a programmer.</OpenAIGenerator_SystemMessage> 
    <OpenAIGenerator_Temperature>0.9</OpenAIGenerator_Temperature> 
    <OpenAIGenerator_Model>gpt-4</OpenAIGenerator_Model> 
  </PropertyGroup>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

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
0.5.0 282 4/8/2023
0.4.0 185 4/8/2023
0.3.0 193 4/7/2023

⭐ Last 10 features:
Added README and new options.
Fixed problems. Added IntegrationTests.
To ConventionalCommitsGitInfo.
Initial commit.
🐞 Last 10 fixes: