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

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.

Awesome Lists containing this project

README

          

# OpenAI and Azure OpenAI Chat - Shakespeare Chat

![Header](./docs/header.png)

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.

![Console1](./docs/shakespeare-chat-01.png)

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

![Console2](./docs/shakespeare-chat-02.png)

Finally you are able to chat with William Shakespeare.

![Console3](./docs/shakespeare-chat-03.png)

## 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)