Giter VIP home page Giter VIP logo

chatgpt-plugin-ts's Introduction

ChatGPT Plugin TS

ChatGPT Plugin TS

Examples and resources for creating ChatGPT plugins in TypeScript.

chatgpt-plugin NPM package Build Status MIT License Prettier Code Formatting

Intro

This repo contains the chatgpt-plugin NPM package, with TS types and utilities for building ChatGPT Plugins with TypeScript.

It also contains several high quality example plugins that you can use as a template for building your own plugins. The goal is to add more examples using different OpenAPI frameworks and hosting providers over time. Currently, all of the examples use Cloudflare Workers, but I'll add an example using Vercel serverless functions soon.

If there's something missing that you'd like to see, please open an issue or join our ChatGPT Hackers community on Discord, with over 8000 developers who are building cool stuff with AI!

Install

npm install chatgpt-plugin
# or
yarn add chatgpt-plugin
# or
pnpm install chatgpt-plugin

Example Plugins

TS code for all example plugins can be found in the examples directory.

Dexa Lex Fridman Plugin

Example ChatGPT retrieval plugin to search across all of the Lex Fridman Podcast episodes – powered by Dexa AI.

What advice does Lex's podcast have for young people?     What is Elon Musk's philosophy on life?

What do poker and physics have in common?     What do Lex's guests think about love?

ASCII Art Plugin

This is a really simple example plugin that converts text to ASCII art. It's a great template to start building your own plugins.

ASCII art using the Poison font

Notes

  • name_for_human
    • 30 character max
  • name_for_model
    • 50 character max
  • description_for_human
    • 120 character max
  • description_for_model
    • 8000 character max
    • Max decreases over time
  • API response body length
    • 100k character limit
    • Decreases over time
    • Subject to limitations
  • TODO: defineConfig function to help validate ai-plugin.json configs?

License

MIT © Travis Fischer

If you found this project interesting, please consider sponsoring me or following me on twitter twitter

chatgpt-plugin-ts's People

Contributors

ericlewis avatar rileytomasek avatar transitive-bullshit 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.