Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/havendv/openaigenerator
- Owner: HavenDV
- License: mit
- Created: 2023-04-07T06:04:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-21T16:54:37.000Z (3 months ago)
- Last Synced: 2024-11-01T13:42:02.700Z (2 months ago)
- Topics: chatgpt, csharp, generator, gpt, gpt-35, gpt-4, openai, prompt-engineering, prompts, source, sourcegenerator
- Language: C#
- Homepage:
- Size: 186 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```