Giter Site home page Giter Site logo

zhangdongsh / l-gpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ltopx/le-ai

0.0 0.0 0.0 2.78 MB

L-GPT is an open-source project that helps you improve your learning, work, and life efficiency by providing various AI models.

Home Page: https://gpt.ltopx.com

JavaScript 2.31% TypeScript 97.45% CSS 0.24%

l-gpt's Introduction

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.

l-gpt's People

Contributors

peek-a-booo 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.