• Stars
    star
    225
  • Rank 177,187 (Top 4 %)
  • Language
    TypeScript
  • Created 10 months ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GPT APIs

Build APIs for GPT

✨ Features

  • URL to Markdown

💁‍♀️ How to use

  • Install dependencies npm i

Test from local

$ npm run dev

http://localhost:3333/api/url2md?url=https://baoyu.io

Authentication for your APIs

Add environment variable BEARER_TOKENS if you want to add authentication for your API requests, split mutiple tokens with ,.

BEARER_TOKENS=ABC,DEF

it will allow the requests with header

Authorization: Bearer ABC

or

Authorization: Bearer DEF

Deploy to production

Railway

  • Connect to your Railway project railway link
  • Start the development server railway run yarn dev

Vercel

Deploying to Vercel

Config for OpenAI

Add a new action for you GPT, this is an example for you Schema:

{
  "openapi": "3.1.0",
  "info": {
    "title": "Fetch page content",
    "description": "Retrieves the page data for a url.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://<YOUR API HOST>"
    }
  ],
  "paths": {
    "/api/url2md": {
      "get": {
        "description": "Get page content for a specific url",
        "operationId": "GetPageContentByUrl",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "description": "The page url to retrieve the content for",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

Who is using this?

More Repositories

1

WeiboSDK

新浪微博SDK之iOS版本
Objective-C
381
star
2

whisper-subtitles

Apple PodCast Transcription with OpenAI's Whisper
Jupyter Notebook
339
star
3

gpt-games

Build games with GPT
Python
306
star
4

Lucene.Net.Analysis.PanGu

盘古分词(http://pangusegment.codeplex.com/ ),由于老版本不支持最新Lucene.Net 3.0.3,对其进行了升级,可以支持最新的Lucene.Net 3.0.3。可以直接NuGet安装。
C#
172
star
5

twitter-virtual-scroller

Twitter's infinite scrolling component VirtualScroller
TypeScript
73
star
6

recoil-paint

The missed demo project for recoiljs
JavaScript
68
star
7

angular-markdown-editor

Markdown editor with AngularJS.
JavaScript
46
star
8

neuron-explainer-paper

https://openaipublic.blob.core.windows.net/neuron-explainer/paper/index.html
JavaScript
42
star
9

express-seed

An empty website using nodejs + express + handlerbars + sass + bower + grunt + mysql.
CSS
37
star
10

Lucene.Net.Analysis.MMSeg

基于Chih-Hao Tsai 的 MMSeg 算法(http://technology.chtsai.org/mmseg/ )实现的中文分词器,并实现 lucene.net 的 analyzer以方便在Lucene.Net中使用。本代码来源于*王员外*(http://www.cnblogs.com/land/archive/2011/07/19/mmseg4j.html)基于Java版的翻译,升级到了最新版Lucene.Net (≥ 3.0.3),并包含简单示例和NuGet安装包。
C#
36
star
11

OLImageDownloader

图片下载和缓存封装 Image cache and download
Objective-C
29
star
12

translations

25
star
13

bbcode-to-react

A utility for turning raw BBCode into React elements.
JavaScript
24
star
14

redux-demo

A redux demo
JavaScript
21
star
15

AppPngDecoder

Decode iPhone png files
6
star
16

fetchog

A node npm for fetching a given URL, returns its title, description, image.
JavaScript
6
star
17

angular-ui-gridster

Angular Gridster.js directive
JavaScript
5
star
18

The-practice-of-iPhone-application-development

Objective-C
5
star
19

atom-state

A state management library for React
TypeScript
5
star
20

auto-link

Replace URLs in text with HTML links, ignore the URLs within a href/pre tag.
JavaScript
5
star
21

electron-boilerplate-react

Boilerplate to kickstart creating an electron app with Electron, React, Gulp, Less.
JavaScript
4
star
22

hipchat-js

JavaScript
3
star
23

reactree

React tree-view component
JavaScript
3
star
24

WordCounter

Count the words
C#
2
star
25

csc471

Swift
1
star