Code Monkey home page Code Monkey logo

origino1.0's Introduction

Origino 1.0

Origino API is an OpenAI-powered API that detects the similarity between texts using embeddings.

Features

  • Built with Next.js 13.2
  • Uses OpenAI API to detect text similarity.
  • Rate limiting to ensure optimal API usage
  • Web application to obtain API key
  • Web application with authentication & authorization using NextAuth and Oauth2.0

Setup

To setup this project locally follow these steps:

  1. Clone the repository to your local machine
git clone https://github.com/{your-github-username}/Origino1.0.git
  1. Change directory to Origino1.0
cd Origino1.0
  1. Install the dependencies.
yarn install
  1. Start the server
yarn dev
  1. Open the web application at http://localhost:3000

API Usage

To use the Origino API, make a POST request to the endpoint at /api/v1/similarity. The request must include the following parameters in the request body:

  • text1: The first text input to compare.
  • text2: The second text input to compare.

The request must also include the Authorization header with your API key.

Rate Limiting

To ensure optimal API usage, Origino API has rate limiting implemented with Redis. The API limits usage to 50 requests per hour per API key. If this limit is exceeded, the API will respond with a 429 Too Many Requests error.

Technologies Used

  • Next.js 13.2
  • Tailwind CSS
  • Open AI API
  • Prisma
  • PlanetScale
  • NextAuth
  • Oauth 2.0
  • Redis

origino1.0's People

Contributors

adi-ty avatar

Stargazers

Mark avatar Tuan Duc Tran avatar Shubh Sardana avatar AYUSH GUPTA avatar

Watchers

 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.