<h1 align="center">
<a href="https://prompts.chat">
Create a private ChatGPT website with one-click for free using Vercel, support muti **text** / **images generation** conversations. Powered by OpenAI API GPT-4/3.5 and Vercel.
Sign in to like and favorite skills

English | 简体中文
Create a private ChatGPT website with one-click for free using Vercel, support muti text / images generation conversations. Powered by OpenAI API GPT-4/3.5 and Vercel.
DALL-E and Midjourney models. It also allows for the adjustment of image size and count.You can access the online demo above or deploy it privately for experience.
Click the icon at the top left to add a conversation, which has two types:
/ or click the button at the bottom left to add.DALL·E model and Midjourneya cat.DALL-E, expend OpenAI tokens. The effective access time for the image link is 2 hours. Please make sure to save it in time if necessary.Midjourney, depending on the Discord configurations, image generation may take a while, with a default timeout of 5 minutes. Please be patient and wait.When
Save all conversations is enabled in the global settings, it will be saved to local cache. By default, it will not be saved.
Enter to sendShift+Enter to line break/ to add preset prompts, and searching is also supported.see Configurations
Create Vercel project from a github forked project(recommand) or the following Deploy button.
There are three ways to set your OpenAI API Key:
.env.expample file to .env and set OPENAI_API_KEYAttention: For Vercel, all environment variables need to be redeployed to take effect.
If you want to use the AI drawing feature of
Midjourney, you can configure the relevant Discord settings , including the following fields:
DISCORD_SERVER_IDDISCORD_CHANNEL_IDDISCORD_TOKENHow to get ids and token:
You can visit midjourney-cookbook to get some samples about
Midjourney prompts.
see Sync Fork
Run
pnpm build and pnpm run server. Refer: astro-node
All deployment configurations could be configured in the
.env file or in Environment Variables of Vercel
| Configuration | Default Value | Description |
|---|---|---|
| PASSWORD | - | Website access password |
| OPENAI_API_KEY | - | Key for API request, multiple keys are supported, separated by commas, how to generate |
| LANGUAGE | en | The default language of the website, including prompts. Supported languages: zh/en |
| API_KEY_STRATEGY | random | The scheduling strategy mode for multiple keys: polling/random |
| OPENAI_API_BASE_URL | api.openai.com | The default address of the requested api |
| DISCORD_SERVER_ID | - | Discord server id |
| DISCORD_CHANNEL_ID | - | Discord channel id |
| DISCORD_TOKEN | - | Discord token |
| DISCORD_IMAGE_PROXY | - | Discord image proxy url |
All global configurations will be stored locally
| Configuration | Default Value | Description |
|---|---|---|
| OpenAI Api Key | - | Only a single key is supported. If it is configured on the page, the key in the environment variable will not be used |
| Language | en | The language of the website, including prompts. Supported languages: zh/en |
| Save all conversations | true | The conversation won't be lost after the page is refreshed |
| Temperature | 1 | The larger the value, the more random the answer, with a range of 0-2 |
| Text Conversation Model | gpt-3.5-turbo | Model used in api request, supported models |
| Continuous conversations | true | Carry the context for the conversations |
| Number of historical messages carried | 4 | For continuous conversations, the number of historical messages carried |
| Image Generation Conversation Model | DALL-E | Supported models: DALL-E / Midjourney / Replicate |
| Number of generated images | 1 | The number of images generated in a single image generation conversation |
| Size of generated images | 256x256 | The size of a single image in image generation conversation |
| Discord Server Id | - | If it is configured on the page, the key in the environment variable will not be used |
| Discord Channel Id | - | Ditto |
| Discord Token | - | Ditto |
These are some of the planned features to be developed. Collaborations are welcome, and feel free to suggest other ideas by submitting issues.
Requirements:
v18 or higherv7 or higherProxy
LOCAL_PROXY needs to be set in .env. There is currently no default proxy, so if you choose to set up a proxy, you assume the associated risks.DISABLE_LOCAL_PROXY=true in the .env file. At this point, api.openai.com will be directly requested.Development:
pnpm devpnpm startBuild:
pnpm buildAny contributions are highly appreciated. Here are some tips:
lang directory. If adding a new language, you will also need to modify src/utils/i18n.ts.prompts directory.src/pages/api directory.src/modules directory.Based on MIT License