https://github.com/tsjdev-apps/openai-chat-copilot
Simple .NET console application demonstrating Azure.AI.OpenAI NuGet package with OpenAI and Azure OpenAI.
https://github.com/tsjdev-apps/openai-chat-copilot
Last synced: 5 months ago
JSON representation
Simple .NET console application demonstrating Azure.AI.OpenAI NuGet package with OpenAI and Azure OpenAI.
- Host: GitHub
- URL: https://github.com/tsjdev-apps/openai-chat-copilot
- Owner: tsjdev-apps
- License: mit
- Created: 2024-02-20T20:16:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T16:28:56.000Z (about 2 years ago)
- Last Synced: 2024-05-06T17:47:22.142Z (about 2 years ago)
- Language: C#
- Size: 503 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenAI and Azure OpenAI Chat - Shakespeare Chat

This repository contains a simple console application written in .NET 8 to demonstrate how to use the chat functionality of [OpenAI](https://openai.com) and/or [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) using the [Azure.AI.OpenAI](https://www.nuget.org/packages/Azure.AI.OpenAI/) NuGet package.
## Usage
You need to create an OpenAI account on this [website](https://platform.openai.com/docs/overview). You have to pay to use the API so make sure that you add your payment information. After that, you can create an API Key [here](https://platform.openai.com/api-keys) for further use. If you have access to an Azure OpenAI instance you can also use this instance for the demo application.
Just run the app and follow the steps displayed on the screen.
## Screenshots
Here you can see the console application in action:
First you need to select the host.

You need to enter the needed properties, like endpoints or API keys.

Finally you are able to chat with William Shakespeare.

## Blog Post / YouTube Video
If you are more interested into details, please see the following posts on [medium.com](https://www.medium.com) or in my [personal blog](https://www.tsjdev-apps.de):
- [Creating a copilot using OpenAI and/or Azure OpenAI](https://medium.com/medialesson/creating-a-copilot-using-openai-and-or-azure-openai-03938fcf7413)
- [Einrichtung von OpenAI](https://www.tsjdev-apps.de/einrichtung-von-openai/)
- [Einrichtung von Azure OpenAI](https://www.tsjdev-apps.de/einrichtung-von-azure-openai/)
You can also watch the following video on my [YouTube channel](https://www.youtube.com/@tsjdevapps):
- [Eigener Shakespeare-Copilot mit OpenAI und Azure OpenAI](https://www.youtube.com/watch?v=X53ZwFGHqOc)