/Presence-API

API for a virtual streamer chatbot that reads Twitch chats and responds using OpenAI/ChatGPT

Primary LanguageC#MIT LicenseMIT

Presence API

A Web API project that can be used to receive Twitch chats, and respond to them using TTS. It uses the OpenAI API to create the responses, and saves the last 10 pieces of conversation to memory, in order for the chat to make sense. For the TTS it uses Microsoft's cognitive service (speech)

Requirements

Requires to also pull the ChatGPT-API project

Usage

In order to register your OpenAI API Key, you need to create a User Secret file with your API key

{
  "OpenAI": {
    "ApiKey": "YourApiKey"
  },
  "Twitch": {
    "Username": "YourTwitchChannelUsername",
    "OAuthKey": "YourTwitchChannelOAuthKey"
  },
  "AzureTTS": {
    "AzureTTSSubscriptionKey": "YourAzureTTSSubscriptionKey",
    "AzureTTSSRegion": "YourAzureTTSRegion"
  }
}