ChatGPT-Persona

所属分类:内容生成
开发工具:TypeScript
文件大小:14755KB
下载次数:0
上传日期:2023-05-16 12:27:33
上 传 者sh-1993
说明:  这是一个娱乐项目,本质上只是添加了预置的prompt,但是加上了一个选角色的页面,再加上角色的介绍包装一下,就显得戏剧又好玩。
(This is an entertainment project, essentially just adding a preset prompt, but with a character selection page and character introduction packaging, it looks dramatic and fun.)

文件列表:
.eslintignore (23, 2023-05-16)
.eslintrc.json (67, 2023-05-16)
.husky (0, 2023-05-16)
.husky\pre-commit (68, 2023-05-16)
.lintstagedrc.json (102, 2023-05-16)
.prettierrc.js (182, 2023-05-16)
CODE_OF_CONDUCT.md (5225, 2023-05-16)
Dockerfile (1403, 2023-05-16)
LICENSE (4764, 2023-05-16)
app (0, 2023-05-16)
app\api (0, 2023-05-16)
app\api\chat-stream (0, 2023-05-16)
app\api\chat-stream\route.ts (1822, 2023-05-16)
app\api\common.ts (955, 2023-05-16)
app\api\config (0, 2023-05-16)
app\api\config\route.ts (514, 2023-05-16)
app\api\openai (0, 2023-05-16)
app\api\openai\route.ts (775, 2023-05-16)
app\api\openai\typing.ts (207, 2023-05-16)
app\components (0, 2023-05-16)
app\components\button.module.scss (858, 2023-05-16)
app\components\button.tsx (891, 2023-05-16)
app\components\chat-list.tsx (3476, 2023-05-16)
app\components\chat.module.scss (1930, 2023-05-16)
app\components\chat.tsx (26169, 2023-05-16)
app\components\error.tsx (1245, 2023-05-16)
app\components\home.module.scss (9590, 2023-05-16)
... ...

# ChatGPT-Persona ¨[Yidadaa/ChatGPT-Next-Web](https://github.com/Yidadaa/ChatGPT-Next-Web)èè‘è–°éprompt”‰è§’è‰è¨±¤§…èè·±é¨ è¨±é訷éprompté‰è§’è‰éé角艅腰±—‰§ ¤¤¤ é°…é—é–‰¤–°èissueè¨è ## APIè éAPI·[transitive-bullshit/chatgpt-api](https://github.com/transitive-bullshit/chatgpt-api) ”¤§API¨ #### ‘ChatGPTAPI è°”¨openAIAPI (gpt-3.5-turbo,gpt-3.5-turbo-0301,gpt-4...) #### ‘ChatGPTUnofficialProxyAPI ”¨‘éaccessTokenéè‘é—è°”¨chatGPT, ¨chatGPT‘èèè· | Method | Free? | Robust? | Quality? | | --------------------------- | ---------- | ---------- | ------------------------------- | | `ChatGPTAPI` | No | … Yes | … Real ChatGPT models + GPT-4[model-endpoint-compatibility](https://platform.openai.com/docs/models/model-endpoint-compatibility) | | `ChatGPTUnofficialProxyAPI` | … Yes | No | … ChatGPT webapp 葤 1¨è‰”¨[OpenAI API key](https://platform.openai.com/overview)è°”¨OpenAI API锉…¨ 2. ”¨‘éaccessToken…èè°”¨chatGPT API‰·¨chatGPTè·accessTokenéè¤[](https://chat.openai.com/api/auth/session)è·–èèchatGPT–‘é‘é蔨‘è…·…·‘è·±”¨Bearer ToeknBeareréé°±accessToken è‘–2”¨accessTokenè…褨è”é蔨‘è–”¨……±[¤](https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy)”¨……±—éè¨accessToken鉖éèèèèè‘éé [¤](https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy)‰`https://ai.fakeopen.com/api/conversation`”¨¨”¨ ## Demo ![Persona](./docs/persona/demo.gif) ## Screenshots ![Persona](./docs/persona/persona_demo.png) ![Chat](./docs/persona/demo_chat.png) ## ” é“é 1. [èé—demo](https://meahabgpt.up.railway.app/) 2. …[OpenAI API key](https://platform.openai.com/overview) ![Setting](./docs/persona/setting_api_key.png) 3. §“é ## é¨ ”é”é¨ 1vercel [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/import?s=https%3A%2F%2Fgithub.com%2Fjuaneboosham%2FChatGPT-Persona&project-name=ChatGPT-Persona&env=OPENAI_API_KEY&env=CODE&framework=nextjs) 2Railway [![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/pPchvD?referralCode=5mcmNY) vercelrailwayé…騅‰DNS±“¨é¨‘è‰ ## é¨éè `OPENAI_API_KEY`required‰ openai‘”[OpenAI API key](https://platform.openai.com/overview)éè‰chatGPTè·éèè¤é `CODE`optional‰ è§èé—è· é¨°…‘”èéèé—è·éè·…‰ `BASE_URL`optional‰ èOpenAI URL‰¨é… openai è·¤é‰é é° ssl èé—éè·° BASE_URL èè http > Default: https://api.openai.com > Examples: http://your-openai-proxy.com `OPENAI_ORG_ID`optional‰ OpenAI ID `OPENAI_ACCESS_TOKEN`(optional) éèAPI_REVERSE_PROXYé…”¨“OPENAI_API_KEY¨—OPENAI_API_KEY… éèaccess token–è°”¨chatGPT `API_REVERSE_PROXY`(optional) éèOPENAI_ACCESS_TOKENé…”¨https://ai.fakeopen.com/api/conversation ## § °‘ 1.node, >= 16 2.git clone 3.¨.env.local–…OPENAI_API_KEY 4.‰§èyarn install && yarn dev ## – è‰è§’è‰ ¨ésrc/public/personas.json¨è§’艔éprompt‰“‘‰“‘”èjsonéAI”hhh‰ ¤§èè·è§’è‰ ”‰‰¨¨vercel騤§è艰‰–…–‰‰ ¨next¨è·–¤–铉—éè¨next.config.js·hostname ``` images: { remotePatterns: [ { protocol: 'https', hostname: "image-bed.vercel.app", port: '', pathname: '/chatGPT/**', }, ], }, ``` ## ° éè° è°[Yidadaa](https://github.com/Yidadaa)è°[Yidadaa/ChatGPT-Next-Web](https://github.com/Yidadaa/ChatGPT-Next-Web)è… ## ¤ é [Issues](https://github.com/juaneboosham/ChatGPT-Persona/issues)

近期下载者

相关文件


收藏者