Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/havendv/openaigenerator

Source generator, which allows you to add prompts from which code will be generated in deterministic mode
https://github.com/havendv/openaigenerator

chatgpt csharp generator gpt gpt-35 gpt-4 openai prompt-engineering prompts source sourcegenerator

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:
```xml

$(API_KEY)

```
3. 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
```xml

You are a programmer.
0.9
gpt-4

```