Giter Site home page Giter Site logo

gpt_arena's Introduction

GPT arena ⚡️

Get answers from different GPT models.

Modifications

-Developed it for multi model comparison(basically free Open source LLms) -Also added voice to text typing , just using WebSpeech API

In the web application you can compare models: gpt-3.5-turbo and gpt-4-1106-preview.

image

Technologies 💻

  • React
  • React Markdown
  • OpenAI API
  • SASS

How It Works?

Users input data that is asynchronously sent to the selected GPT model via the OpenAI API, using a streaming to output the generated text - the model's response, and ReactMarkdown to display the output, providing a full-fledged representation of the message.

OpenAI API Key 🔐

To interact with the GPT models, an API key from OpenAI is required. This key enables your application to authenticate requests to OpenAI's services, ensuring that usage is secure and measured.

Acquiring an API Key

  1. Create an account at OpenAI.
  2. Navigate to the API section and generate a new API key.
  3. Once you have your key, you will use it in your environment file to authenticate API requests from your application.

Setting Up Your API Key

In the root of your project:

  1. Create a .env file.
  2. Add the following line: REACT_APP_OPENAI_API_KEY='your-api-key-here'.
  3. This will allow your application to authenticate its requests to OpenAI.

How Can It Be Improved?

  • Add a personal account (username, password, API key);
  • Save user info, sessions in DataBase (MongoDB or Postgres);
  • Add the ability to select models for comparison (drop-down list);
  • Adapt the web application for mobile devices;

Known Problems 🐛

  • The web application is not adapted for phones and tablets.

Running the Project 🚦

To run the project in your local environment, follow these steps:

  1. Clone the repository to your local machine.
  2. Run npm install or yarn in the project directory to install the required dependencies.
  3. Create .env file, inside write REACT_APP_OPENAI_API_KEY='your-api-key-here'
  4. Run npm run start or yarn start to get the project started.
  5. Open http://localhost:3000 (or the address shown in your console) in your web browser to view the app.

Demo 📸

gpt.mp4

gpt_arena's People

Contributors

klnamv avatar ravindra2711 avatar

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.