Giter VIP home page Giter VIP logo

pywiki-lite's Introduction

pyWiki Lite

pyWiki Lite is a chatbot application that interfaces with OpenAI, GPT-4-All, and Twitch. This guide will walk you through the process of obtaining a Twitch Client ID and Client Secret, setting up a redirect URI, and acquiring an OpenAI API key for use with pyWiki Lite.

Twitch Client ID and Client Secret

  1. Create a Twitch Developer Account:

  2. Create a New Application:

    • Log in to your Twitch Developer account.
    • Go to the Applications section.
    • Click on the "Register Your Application" button.
  3. Fill Out Application Details:

    • Provide a name for your application (e.g., "MyTwitchApp").
    • Set the OAuth Redirect URLs to http://localhost:3000/.
    • Choose an appropriate category for your application.
    • Agree to the terms of service and click the "Create" button.
  4. Obtain Client ID and Client Secret:

    • After creating the application, you'll receive a Client ID and a Client Secret. Keep these secure, as they are required for authentication.

OpenAI API Key

  1. Sign Up for an OpenAI Account:

    • If you don't have an OpenAI account, sign up for one on the OpenAI website.
  2. Generate an API Key:

    • Log in to your OpenAI account.
    • Navigate to the API section of your account.
  3. Create a New API Key:

    • Create a new API key and provide a descriptive name for it.
  4. Retrieve Your API Key:

    • Once the API key is generated, it will be displayed. This key is necessary for making API requests to OpenAI.

Remember to keep your API keys secure and avoid sharing them publicly or hardcoding them directly into your code. Use best practices for managing sensitive information in your applications.

Login

  • Once you enter your Client ID and Client Secret you may click login to direct you to a browser login, log into the account that you want your bot to be.
  • OpenAI API Key is necessary to generate responses, it is possible to use gpt4all instead of OpenAI without entering a key as long as the necessary files are in the same directory. (see below)

Additional Resources

Usage

  • Say the name of the bot, and it will reply with an AI generated response.
  • Set the slider to a percentage chance that the bot will reply on its own at random.
  • Left click to select a chatter on the user list and right click to tell the bot to address them.
  • Double-click a user for some additional account information. (If the bot is not a moderator the follow age will say "Not Following")
  • Enter instructions into the context box to influence the bot's "personality," this works best in GPT-4, has some effect on GPT-3.5-Turbo, and little effect on the offline models.

Tags for Context:

  • <name> : Same as Username
  • <channel> : Same as Channel
  • <game> : The current game from the twitch API
  • <author> : The chatter that sent the prompt
  • <emotes> : A CSV of all global twitch emotes (Uses a lot of tokens, remove this tag to save on openai credit)
  • <time> : Raw local date and time output (<UTC> also works)
  • <chatter_pronouns> : The pronouns of the chatter that sent the prompt
  • <streamer_pronouns> : The pronouns of the streamer
  • <users> : A CSV of the users in chat (Pulled from irc, may take time to update, large lists can use a lot of tokens, so you may not want to use this tag. If ignore is checked the bot sees the list as unknown.)

Features:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.