fjcero / fastapi-custom-gpt

Create a custom ChatGPT action using OAuth with Auth0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI + OAuth 2.0 + GPT custom action

  • Setup FastAPI (server)
  • Setup Auth0
  • Integrate with Auth0 as OAuth 2.0 Server
  • Authenticate GPT using OAuth authorization_code flow
  • Verify JWT to process access_token
  • Create a protected endpoint for talking with ChatGPT
  • Identify users for endpoint usage and allow access to different resources
  • Integrate agent with Vector DB
  • Deploy to AWS Lambda (mangum)
  • Setup SolidJS (web)
  • Integrate with Supabase as DB?

gpt-custom-action-demo

Requirements

# brew install poetry
poetry install

Dev Env

poetry run dev

Docs

Deploy

Regenerate requirements.txt for deployment

poetry export --without-hashes --format=requirements.txt > requirements.txt

About

Create a custom ChatGPT action using OAuth with Auth0


Languages

Language:Python 74.1%Language:TypeScript 9.8%Language:JavaScript 7.2%Language:CSS 5.6%Language:HTML 3.3%