Skip to content
forked from LTopx/Le-AI

L-GPT is an open-source project that imitates the OpenAI ChatGPT

License

Notifications You must be signed in to change notification settings

lakei-edward/GPT

 
 

Repository files navigation

L-GPT

English / 简体中文

Help Documentation https://docs.ltopx.com

L-GPT is an open-source project that integrates various large language models' open APIs to provide users with highly aggregated and helpful AI services. It not only supports basic conversation functions but will also support more features such as text-to-speech, speech input, file parsing, plugins, etc. in the future. It can improve learning, work, and life efficiency in many ways. Demo

Welcome to:Telegram

Preview

Attention

Recently, there have been fewer updates on the web end, mainly focused on developing the first version of the client. Currently, the UI interface has been basically ported, and it supports using your own API Key for sessions.

In the future, functions will be implemented on the web end first and then synchronized to the client, so the client's functions will lag behind the web end.

  • Not yet supported: login, registration, sharing sessions, multi-language, etc.
  • Currently, only your own API Key can be configured for sessions because login is not yet supported.
  • The client project will be open source soon, so stay tuned.
  • The first stable version of the complete client functionality is expected to be released at the end of June.

Features

  • Deploy for free on Vercel
  • Responsive design and dark mode
  • Safe, all data based on local
  • Support i18n
  • Support Azure OpenAI Service
  • Support configuration and use of custom prompt

Next

  • Support Azure OpenAI
  • Introduce prompt words and prompt word templates
  • Chat record import and export
  • Account System
  • Support conversation sharing
  • Support for customizing the prompt repository
  • Support GPT-4 and Claude
  • Compress context to save chat tokens
  • Desktop version development

Deploy on Vercel

Get your own website.

# Configure Project

# Prefer using user-configured key.
# If user hasn't configured, then use this key.
# If neither are configured, it is not possible to use OpenAI API.
# eg: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_OPENAI_API_KEY=

# Prefer using user-configured proxy address.
# If the user hasn't configured, then use this proxy.
# If none of these are being used, then connect directly to the Open AI official address: https://api.openai.com.
NEXT_PUBLIC_OPENAI_API_PROXY=

# Set Your Azure OpenAI API key.
NEXT_PUBLIC_AZURE_OPENAI_API_KEY=

# Set Your Azure OpenAI API resource name.
NEXT_PUBLIC_AZURE_OPENAI_RESOURCE_NAME=

# Azure OpenAI Service API Version
NEXT_AZURE_OPENAI_API_VERSION=

# set your own sentry dsn. if empty here, it will not report error to sentry
NEXT_PUBLIC_SENTRY_DSN=


# DATABASE_URL
DATABASE_URL=

# NEXT-AUTH Email Configure. https://next-auth.js.org/providers/email
EMAIL_SERVER_HOST=
EMAIL_SERVER_PORT=
EMAIL_SERVER_USER=
EMAIL_SERVER_PASSWORD=
EMAIL_FROM=
EMAIL_SECRET=

# NEXT-AUTH Github Configure. https://next-auth.js.org/providers/github
GITHUB_ID=
GITHUB_SECRET=

# NEXT-AUTH Google Configure. https://next-auth.js.org/providers/google
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

Deploy with Vercel

Running Local

1. Clone Repo

git clone https://github.com/Peek-A-Booo/L-GPT.git

2. PNPM

If you are not install pnpm, you can install it by running the following command.

npm install pnpm -g

3. Install Dependencies

pnpm i

4. Configure Environment Variables

Renamed .env.local.demo to .env.local and configure it according to requirements.

5. Run App

pnpm dev

6. Build App

pnpm build && pnpm start

Configuration

You can configure the following environment variables.

Environment Variable Desc Required Default
NEXT_PUBLIC_OPENAI_API_KEY your OpenAI API Key false
NEXT_PUBLIC_OPENAI_API_PROXY your OpenAI API proxy server false https://api.openai.com
NEXT_PUBLIC_AZURE_OPENAI_API_KEY your Azure OpenAI API Key. View Example false
NEXT_PUBLIC_AZURE_OPENAI_RESOURCE_NAME your Azure OpenAI API resource name. View Example false
NEXT_AZURE_OPENAI_API_VERSION your Azure OpenAI API Version. View Example true 2023-05-15
NEXT_PUBLIC_SENTRY_DSN your sentry dsn. If empty, it will not report error to sentry false
DATABASE_URL postgresql database address true
EMAIL_SERVER_HOST next-auth email server host true
EMAIL_SERVER_PORT next-auth email server port true
EMAIL_SERVER_USER next-auth email server user true
EMAIL_SERVER_PASSWORD next-auth email server password true
EMAIL_FROM next-auth email from false
EMAIL_SECRET next-auth email secret true
GITHUB_ID next-auth github id true
GITHUB_SECRET next-auth github secret true
GOOGLE_CLIENT_ID next-auth google client id true
GOOGLE_CLIENT_SECRET next-auth google client secret true

Contact

Any questions, please feel free to join our Telegram group or contact us on Twitter.

About

L-GPT is an open-source project that imitates the OpenAI ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.9%
  • JavaScript 1.9%
  • CSS 0.2%