This repository contains the project ChatAPI, which is an API developed in C# for chatting with characters.
The repository is organized into three main components:
-
DBCore: This folder contains the definitions for the entities used in the project. These entities define the structure and behavior of the characters involved in the chat.
-
PromptingCore: This folder is responsible for managing prompts, handling request submissions, and managing responses. It plays a crucial role in facilitating the interaction between the API and OpenAI services.
-
BotiChat: This folder contains the API controllers that handle the chat functionality and interactions with the characters.
To set up and run the ChatAPI project, follow these steps:
-
Make sure you have Docker installed on your machine.
-
Set the environment variable
OPENAI_API_KEYwith your OpenAI API key. This key is required to access the OpenAI services. -
Build the Docker container:
docker-compose build -
Build and start the Docker container:
docker-compose up --build
The API will be accessible at the specified endpoint, allowing you to chat with the characters using the defined