ChatGPT Web搭建
ChatGPT Web搭建
API-Key
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
Organization ID
org-Uopf90gNYJsmuepsvWCAFUER
accessToken
{
user: {
id: "user-Z13AF4OoPk1WpuiL2bCM8LP3",
name: "t6p8v9d9@huameijiaoyu.top",
email: "t6p8v9d9@huameijiaoyu.top",
image: "https://s.gravatar.com/avatar/37cc477ac4addc09baa025f020371535?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Ft6.png",
picture: "https://s.gravatar.com/avatar/37cc477ac4addc09baa025f020371535?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Ft6.png",
groups: [ ]
},
expires: "2023-04-11T15:58:05.485Z",
accessToken: "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik1UaEVOVUpHTkVNMVFURTRNMEZCTWpkQ05UZzVNRFUxUlRVd1FVSkRNRU13UmtGRVFrRXpSZyJ9.eyJodHRwczovL2FwaS5vcGVuYWkuY29tL3Byb2ZpbGUiOnsiZW1haWwiOiJ0NnA4djlkOUBodWFtZWlqaWFveXUudG9wIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsImdlb2lwX2NvdW50cnkiOiJVUyJ9LCJodHRwczovL2FwaS5vcGVuYWkuY29tL2F1dGgiOnsidXNlcl9pZCI6InVzZXItWjEzQUY0T29QazFXcHVpTDJiQ004TFAzIn0sImlzcyI6Imh0dHBzOi8vYXV0aDAub3BlbmFpLmNvbS8iLCJzdWIiOiJhdXRoMHw2Mzk2OTliOTY5MjQzZmUxM2IxNmQ3MWQiLCJhdWQiOlsiaHR0cHM6Ly9hcGkub3BlbmFpLmNvbS92MSIsImh0dHBzOi8vb3BlbmFpLm9wZW5haS5hdXRoMGFwcC5jb20vdXNlcmluZm8iXSwiaWF0IjoxNjc4MDM0Mzc0LCJleHAiOjE2NzkyNDM5NzQsImF6cCI6IlRkSkljYmUxNldvVEh0Tjk1bnl5d2g1RTR5T282SXRHIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBlbWFpbCBtb2RlbC5yZWFkIG1vZGVsLnJlcXVlc3Qgb3JnYW5pemF0aW9uLnJlYWQgb2ZmbGluZV9hY2Nlc3MifQ.uMPKlzuNAEK2S4FaTXdcZNJyahrlVxh-tGU7K2r3R6ddNoSkS0t2UglTNla4EFfJCVq0nAKV0me8-vhh091ZcvGBiUwUvl9Mn0jWYzCZmzkXAomPRK8lDfsTkdDOFcXr-S9SbQagjRJmH16P0d7QW1x7K1u1_P6OnrYqIcNUrGkxjTDFiQ-TysBbtP-40_h9XdNOzGftfcaldGxSjk2wqVKpv4LC4QJSlo7glMM7QbDnEKsR5LW55clmAHntTHnQGXBS462ILlJIylPO7AOLDByLA6p4Lo49gFW4Aw6jVGPTYIqy7Rz4z8y0aGBSd7oQ4f-l0V755mK3XcE0nFOOMA"
}
docker布署
参考:https://github.com/Chanzhaoyu/chatgpt-web
OPENAI_API_BASE_URL=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 OPENAI_API_BASE_URL=https://openai.youproxy.com/
docker build -t chatgpt-web .
# 前台运行
docker run --name chatgpt-web --rm -it -p 3002:3002 -e OPENAI_API_KEY=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 -e OPENAI_API_BASE_URL=https://openai.youproxy.com -e OPENAI_API_MODEL=gpt-3.5-turbo chenzhaoyu94/chatgpt-web:latest
# 后台运行
docker run -d --name chatgpt-web --restart=always -p 3002:3002 --network mynet -e OPENAI_API_KEY=sk-xxxxx -e OPENAI_API_BASE_URL=https://openai.youproxy.com -e OPENAI_API_MODEL=gpt-3.5-turbo-0301 chenzhaoyu94/chatgpt-web:latest
docker run -d --name chatgpt-web --restart=always --network mynet -e OPENAI_API_KEY=sk-xxxxx -e OPENAI_API_BASE_URL=https://openai.youproxy.com -e OPENAI_API_MODEL=gpt-3.5-turbo-0301 chenzhaoyu94/chatgpt-web:latest
# 运行地址
http://localhost:3002/