/chatgpt-vercel

Powered by OpenAI API GPT-4/3.5 and Vercel, support text conversation and prompts preset -- 支持文本对话和预设提示,由 OpenAI API GPT-4/3.5 和 Vercel 提供支持

Primary LanguageTypeScriptMIT LicenseMIT

ChatGPT-Vercel

license

English | 简体中文

Introduction

Building your own ChatGPT website by Vercel, support text conversation and prompt preset. Powered by OpenAI API GPT-4/3.5 and Vercel.

Features

  • Text Conversation
  • Prompts Preset
  • Images Generation
  • Audio

Getting Started

1. Create Project

Create Vercel project from a github forked project(recommand) or the following Deploy button.

Deploy with Vercel

2. Set OPENAI_API_KEY

There are three ways to set your openai api key:

  • Set Vercel Environment Variables OPENAI_API_KEY
  • Rename your .env.expample file to .env and set OPENAI_API_KEY
  • Set OPENAI_API_KEY within the page

Live Demo

Configurations

Deployment Configurations

All deployment configurations could be configured in the .env file or in Environment Variables of Vercel

Configuration Default Value Description
OPENAI_API_KEY - Key for API request, how to generate
LANGUAGE en Website language, including prompts. Supported languages: zh/en

Global Configurations

All global configurations will be stored locally

Configuration Default Value Description
OpenAI Api Key - The same with the deployment configuration
Model gpt-3.5-turbo Model used in api request, supported models
Save current conversation false The conversation won't be lost after the page is refreshed

Credits

License

Based on MIT License