Giter Site home page Giter Site logo

btcnoder / gpts-works Goto Github PK

View Code? Open in Web Editor NEW

This project forked from all-in-aigc/gpts-works

0.0 0.0 0.0 3.38 MB

A Third-party GPTs store

Home Page: https://gpts.works

License: Apache License 2.0

Shell 0.04% JavaScript 2.25% Python 17.26% TypeScript 78.60% CSS 0.89% Makefile 0.57% Dockerfile 0.40%

gpts-works's Introduction

GPTs Works

GPTs Works is a Third-party GPTs store.

Introduction

This project consists of the following three parts👇

  1. Website

code located in the web directory.

you can view a live demo at: https://gpts.works

Website

  1. Index System

code located in the index directory.

index system is used for searching GPTs with vector.

there is a GPTs built with index system: https://chat.openai.com/g/g-EBKM6RsBl-gpts-works

GPTs

  1. Browser Extension

code located in the extension directory.

browser extension is used to show Third-party GPTs beside ChatGPT Explore page.

Extension

Dependencies

Deploy with Vercel

Deploy with Vercel

Local development

Clone project

git clone https://github.com/all-in-aigc/gpts-works.git path-to-project

Prepare data

  1. create table in your postgres database with sql:
CREATE TABLE gpts (
    id SERIAL PRIMARY KEY,
    uuid VARCHAR(255) UNIQUE NOT NULL,
    org_id VARCHAR(255),
    name VARCHAR(255),
    description TEXT,
    avatar_url TEXT,
    short_url VARCHAR(255),
    author_id VARCHAR(255),
    author_name VARCHAR(255),
    created_at timestamptz,
    updated_at timestamptz,
    detail JSON,
    index_updated_at INT NOT NULL DEFAULT 0
);
  1. insert your own GPTs data into your postgres database

Start with Website

  1. locate a .env file in dir path-to-project/web with content:
POSTGRES_URL="postgres://default:[email protected]/verceldb"

INDEX_API_BASE_URI="http://127.0.0.1:8068"
INDEX_API_KEY="gsk-xxx"
  1. install dependencies
pnpm install
  1. start web server
make dev
  1. preview website

open http://localhost:8067

Start with Index System

  1. locate a .env file in path-to-project/index with content
DATABASE_URL=postgres://default:[email protected]:5432/verceldb

AZURE_API_KEY=xxx  
AZURE_API_BASE=https://xxx.openai.azure.com/
AZURE_API_VERSION=2023-07-01-preview
AZURE_LLM_MODEL=gpt-35-turbo-16k
AZURE_EMBED_MODEL=text-embedding-ada-002

STORE_TYPE=zilliz
STORE_URI=https://xxx.zillizcloud.com
STORE_TOKEN=xxx
STORE_DIM=1536
STORE_COLLECTION=gpts

INDEX_API_KEY=gsk-xxx
  1. install dependencies
pip install -r requirements.txt
  1. start api server
make dev
  1. build index for gpts data
curl -X POST -H "Authorization: Bearer gsk-xxx" http://127.0.0.1:8068/gpts/index 
  1. search gpts from index
curl -X POST -H "Authorization: Bearer gsk-xxx" -H "Content-Type: application/json" -d '{"question": "What GPTs are used for coding?"}' http://127.0.0.1:8068/gpts/index 

Start with Extension

goto path-to-project/extension

  1. install dependencies
pnpm install
  1. start server
make dev
  1. debug extension

open chrome://extensions/, click Load unpacked

Thanks to

if this project is helpful to you, buy me a coffee😄

Buy Me A Coffee

Star History

Star History Chart

gpts-works's People

Contributors

idoubi 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.