GPTs Works is a Third-party GPTs store.
This project consists of the following three parts👇
code located in the web
directory.
you can view a live demo at: https://gpts.works
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
code located in the extension
directory.
browser extension is used to show Third-party GPTs beside ChatGPT Explore page.
git clone https://github.com/all-in-aigc/gpts-works.git path-to-project
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
);
path-to-project/web
with content:POSTGRES_URL="postgres://default:xxx@xxx.postgres.vercel-storage.com/verceldb"
INDEX_API_BASE_URI="http://127.0.0.1:8068"
INDEX_API_KEY="gsk-xxx"
pnpm install
make dev
open http://localhost:8067
path-to-project/index
with contentDATABASE_URL=postgres://default:xxx@xxx.postgres.vercel-storage.com: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
pip install -r requirements.txt
make dev
curl -X POST -H "Authorization: Bearer gsk-xxx" http://127.0.0.1:8068/gpts/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
goto path-to-project/extension
pnpm install
make dev
open chrome://extensions/
, click Load unpacked
if this project is helpful to you, buy me a coffee😄