Giter Site home page Giter Site logo

all-in-aigc / gpts-works Goto Github PK

View Code? Open in Web Editor NEW
1.4K 8.0 275.0 3.38 MB

A Third-party GPTs store

Home Page: https://gpts.works

License: Apache License 2.0

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

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpts-works's Issues

2

1

GA Expert

Our custom GPT is trained on all Google Analytics documentation to provide expert answers to your Google Analytics questions.

WINDOWS电脑需要先安装pnpm next 检查package.json:

对于make dev命令,您可能需要使用适合您项目的具体命令。make通常在Windows上不可用,除非您安装了GNU Make或类似工具。如果您的项目使用Node.js开发,并且有一个package.json文件,您可以查看其中的scripts部分,找到启动开发服务器的脚本命令。通常这可能是npm run dev或pnpm run dev

安装pnpm:
如果您没有安装pnpm,您需要先安装它。可以使用npm来安装pnpm。

cmd
Copy code
npm install -g pnpm
-g选项表示全局安装,这样pnpm命令可以在任何地方使用。

安装next:
错误 'next' 不是内部或外部命令 表示next.js可能没有正确安装。您可以尝试在您的项目文件夹内局部安装next.js:

cmd
Copy code
npm install next react react-dom
这会在您的项目的node_modules文件夹下安装next以及next所依赖的react和react-dom。

检查package.json:
确保您的package.json文件中有一个dev脚本指向next dev。它看起来应该像这样:

json
Copy code
"scripts": {
"dev": "next dev",
// ...其他脚本
}
运行开发服务器:
一旦next安装完成,并且package.json中有正确的脚本,您应该能够用以下命令启动开发服务器:

cmd
Copy code
npm run dev

License

Could you please clarify the open source license of your project?

Please add all Cybrix.AI GPTs

There are 10 so far.
Source: https://cybrix.ai/gpts.html

gpts = [
    {
        "title": "Context Keeper",
        "description": "Saves and loads prompts on command",
        "link": "https://chat.openai.com/g/g-kreBYcHzs-context-keeper"
    },
    {
        "title": "News Bias Analyzer",
        "description": "Effortlessly Analyze the News: Automatically Fetch and Analyze the Latest Headlines or Paste a News Article's URL or Text! Get Instant Graphs, Summaries, Categories, Tags, and In-Depth Source Analysis.",
        "link": "https://chat.openai.com/g/g-9tbHB4O4r-news-bias-analyzer"
    },
    {
        "title": "SOP Writer Pro",
        "description": "Writes and formats Standard Operating Procedures with diagrams.",
        "link": "https://chat.openai.com/g/g-LcI10C2EH-sop-writer-pro"
    },
    {
        "title": "Crop It!",
        "description": "Quick Image Cropping & More: Experience fast, precise cropping and resizing, along with advanced adjustments for brightness, contrast, and white balance. Perfect for image and logo modifications, favicon generation, and other image enhancements – all in one streamlined tool.",
        "link": "https://chat.openai.com/g/g-3K6u1eRlD-crop-it"
    },
    {
        "title": "Data Only",
        "description": "No small talk. Only cold, hard results.",
        "link": "https://chat.openai.com/g/g-z2ZzMfvqv-data-only"
    },
    {
        "title": "GPT Action Builder",
        "description": "Builds compliant OpenAPI schemas for custom GPT actions",
        "link": "https://chat.openai.com/g/g-mLeQhjN21-gpt-action-builder"
    },
    {
        "title": "Regex Crafter",
        "description": "Professional, concise regex creator.",
        "link": "https://chat.openai.com/g/g-TAANxtI3q-regex-crafter"
    },
    {
        "title": "Screenplay and Script Converter",
        "description": "Converts text to script format, keeps original dialogue, uses markdown.",
        "link": "https://chat.openai.com/g/g-b87soezbf-screenplay-and-script-converter"
    },
    {
        "title": "Chemistry Companion",
        "description": "Professional chemistry assistant, SMILES supported molecule and reaction diagrams, and more!",
        "link": "https://chat.openai.com/g/g-XRqFkyefW-chemistry-companion"
    },
    {
        "title": "RudeGPT",
        "description": "RudeGPT: The Assistant with Attitude.",
        "link": "https://chat.openai.com/g/g-Fz2gm6LcG-rudegpt"
    }
]

ReferenceError: Request is not defined

[root@ser451744158995 web]# pnpm install
Lockfile is up to date, resolution step is skipped
Packages: +473
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
node_modules/.pnpm/[email protected]/node_modules/protobufjs: Running postinstall script, done in 204ms
node_modules/.pnpm/[email protected]/node_modules/bufferutil: Running install script, done in 367ms
node_modules/.pnpm/[email protected]/node_modules/utf-8-validate: Running install script, done in 408ms
Done in 10.2s
[root@ser451744158995 web]# make dev
pnpm dev --hostname 0.0.0.0 --port 8067

[email protected] dev /www/wwwroot/lanshankj.com/web
next dev "--hostname" "0.0.0.0" "--port" "8067"

/www/wwwroot/lanshankj.com/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/web/spec-extension/request.js:28
class NextRequest extends Request {
^

ReferenceError: Request is not defined
at Object. (/www/wwwroot/lanshankj.com/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/web/spec-extension/request.js:28:27)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module.mod.require (/www/wwwroot/lanshankj.com/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:64:28)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/www/wwwroot/lanshankj.com/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js:37:18)
at Module._compile (node:internal/modules/cjs/loader:1105:14)

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.