1
0

精简提交历史记录

This commit is contained in:
okxlin
2023-11-09 19:15:01 +08:00
commit 691aa7aac9
1529 changed files with 800341 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
CONTAINER_NAME="pandora"
PANEL_APP_PORT_HTTP="40040"
DATA_PATH="./data"
PROXY=""
API_BASE_URL="https://ai.fakeopen.com"
REVERSE_PROXY="https://ai.fakeopen.com"

View File

@@ -0,0 +1,38 @@
additionalProperties:
formFields:
- default: 40040
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: ""
edit: true
envKey: PROXY
labelEn: Specify the proxy in the formatprotocol://user:pass@ip:port.
labelZh: 指定代理格式protocol://user:pass@ip:port。
required: false
type: text
- default: https://ai.fakeopen.com
edit: true
envKey: API_BASE_URL
labelEn: OpenAI API interface address
labelZh: OpenAI API接口地址
required: true
type: text
- default: https://ai.fakeopen.com
edit: true
envKey: REVERSE_PROXY
labelEn: ChatGPT API reverse proxy
labelZh: ChatGPT API反向代理
required: true
type: text

View File

@@ -0,0 +1,44 @@
version: '3'
services:
pandora:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:40040"
volumes:
- "${DATA_PATH}:/data"
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
# 指定Access Token字符串。
#- PANDORA_ACCESS_TOKEN=${ACCESS_TOKEN}
# 指定一个存放多Access Token的文件路径。
#- PANDORA_TOKENS_FILE=${DATA_PATH}/TOKEN.txt
# 指定代理格式protocol://user:pass@ip:port。
- PANDORA_PROXY=${PROXY}
# 以http服务方式启动格式ip:port
- PANDORA_SERVER=0.0.0.0:40040
# 使用gpt-3.5-turboAPI请求你可能需要向OpenAI支付费用。
#- PANDORA_API=${API_KEY}
# 启用sentry框架来发送错误报告供作者查错敏感信息不会被发送。
#- PANDORA_SENTRY
# 显示调试信息,且出错时打印异常堆栈信息,供查错使用。
- PANDORA_VERBOSE
# 指定服务启动的线程数,默认为 8Cloud模式为 4。
- PANDORA_THREADS=4
- PANDORA_CLOUD=CLOUD
- OPENAI_API_PREFIX=${API_BASE_URL}
- CHATGPT_API_PREFIX=${REVERSE_PROXY}
#- OPENAI_EMAIL=${OPENAI_ACCOUNT}
#- OPENAI_PASSWORD=${OPENAI_PASSWORD}
#- OPENAI_MFA_CODE=${OPENAI_MFA}
tty: true
image: pengzhile/pandora:1.3.5
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

106
apps/pandora/README.md Normal file
View File

@@ -0,0 +1,106 @@
# 使用说明
可以国际互联的可以访问官方链接获取`ACCESS_TOKEN`
[官方链接获取 AccessToken](https://chat.openai.com/api/auth/session)
# 原始相关
# Pandora
潘多拉 (Pandora),一个让你呼吸顺畅的 ChatGPT。
潘多拉实现了网页版 ChatGPT 的主要操作。后端优化,绕过 Cloudflare速度喜人。
<!-- PROJECT SHIELDS -->
![Python version](https://img.shields.io/badge/python-%3E%3D3.7-green)
[![Issues](https://img.shields.io/github/issues-raw/zhile-io/pandora)](https://github.com/zhile-io/pandora/issues)
[![Commits](https://img.shields.io/github/last-commit/zhile-io/pandora/master)](https://github.com/zhile-io/pandora/commits/master)
[![PyPi](https://img.shields.io/pypi/v/pandora-chatgpt.svg)](https://pypi.python.org/pypi/pandora-chatgpt)
[![Downloads](https://static.pepy.tech/badge/pandora-chatgpt)](https://pypi.python.org/pypi/pandora-chatgpt)
[![PyPi workflow](https://github.com/zhile-io/pandora/actions/workflows/python-publish.yml/badge.svg)](https://github.com/zhile-io/pandora/actions/workflows/python-publish.yml)
[![Docker workflow](https://github.com/zhile-io/pandora/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/zhile-io/pandora/actions/workflows/docker-publish.yml)
[![Discord](https://img.shields.io/discord/1098772912242163795?label=Discord)](https://discord.gg/QBkd9JAaWa)
## 体验地址
* 点击 <a href="https://chat.zhile.io" target="_blank" title="Pandora Cloud体验地址">https://chat.zhile.io</a>
* 最新拿 `Access Token` 的技术原理,我记录在[这里](https://zhile.io/2023/05/19/how-to-get-chatgpt-access-token-via-pkce.html)了。
* 可以访问 [这里](http://ai-20230626.fakeopen.com/auth) 拿 `Access Token`
* 也可以官方登录,然后访问 [这里](http://chat.openai.com/api/auth/session) 拿 `Access Token`
* `Access Token` 有效期 `14` 天,期间访问**不需要梯子**。这意味着你在手机上也可随意使用。
* 这个页面上还包含一个共享账号的链接,**没有账号**的可以点进去体验一下。
## ChatGPT使用时可能会遇到
### 1. Please stand by, while we are checking your browser...
### &nbsp;&nbsp;&nbsp;动不动来一下,有时候还不动或者出人机验证。痛!
![t0](https://github.com/zhile-io/pandora/raw/master/doc/images/t0.png)
### 2. Access denied. Sorry, you have been blocked
### &nbsp;&nbsp;&nbsp;经典问题只能到处找可用VPN费时费力更费钱。移动端访问更难。痛
![t1.1](https://github.com/zhile-io/pandora/raw/master/doc/images/t1.1.png)
### 3. ChatGPT is at capacity right now
### &nbsp;&nbsp;&nbsp;系统负载高,白嫖用户不给用。痛!
![t2](https://github.com/zhile-io/pandora/raw/master/doc/images/t2.png)
### 4. This content may violate our <u>content policy</u>.
### &nbsp;&nbsp;&nbsp;道德审查,多触发几次可能就封号了。痛!!!
![t3](https://github.com/zhile-io/pandora/raw/master/doc/images/t3.png)
### 5. Something went wrong.
### &nbsp;&nbsp;&nbsp;吃着火锅唱着歌,突然就出故障了。痛!
![t4](https://github.com/zhile-io/pandora/raw/master/doc/images/t4.png)
### 6. 手机和电脑的模型不通用,顾这个就顾不到那个,痛!
![t7](https://github.com/zhile-io/pandora/raw/master/doc/images/t7.png)
### 7. 蹦字慢吞吞,卡顿不流畅,不知道的甚至想换电脑。痛!
### 8. 想把 `ChatGPT` 接到其他系统,结果只能接个差强人意的 `gpt-3.5-turbo`。痛!
### _一次看完上面的噩梦血压上来了拳头硬了太痛了以上痛点`Pandora` 一次全部解决。_
## 界面截图
<details>
<summary>
![alt Screenshot5](https://github.com/zhile-io/pandora/raw/master/doc/images/s05.png)<br>
![alt Screenshot10](https://github.com/zhile-io/pandora/raw/master/doc/images/s12.jpeg)
</summary>
![alt Screenshot1](https://github.com/zhile-io/pandora/raw/master/doc/images/s01.png)<br>
![alt Screenshot2](https://github.com/zhile-io/pandora/raw/master/doc/images/s02.png)<br>
![alt Screenshot3](https://github.com/zhile-io/pandora/raw/master/doc/images/s03.png)<br>
![alt Screenshot4](https://github.com/zhile-io/pandora/raw/master/doc/images/s04.png)<br>
![alt Screenshot6](https://github.com/zhile-io/pandora/raw/master/doc/images/s06.png)<br>
![alt Screenshot11](https://github.com/zhile-io/pandora/raw/master/doc/images/s11.jpeg)
</details>
## 如何搭建运行
* 访问 [doc/wiki.md](https://github.com/zhile-io/pandora/blob/master/doc/wiki.md) 获得详细指导。
## 其他说明
* `开源项目可以魔改,但请保留原作者信息。确需去除,请联系作者,以免失去技术支持。`
* 项目是站在其他巨人的肩膀上,感谢!
* 报错、BUG之类的提出`Issue`,我会修复。
* 因为之后`ChatGPT`的API变动我可能不会跟进修复。
* 喜欢的可以给颗星,都是老朋友了。
* 不影响`PHP是世界上最好的编程语言`
## 贡献者们
> 感谢所有让这个项目变得更好的贡献者们!
[![Star History Chart](https://contrib.rocks/image?repo=zhile-io/pandora)](https://github.com/zhile-io/pandora/graphs/contributors)
## Star历史
![Star History Chart](https://api.star-history.com/svg?repos=zhile-io/pandora&type=Date)

20
apps/pandora/data.yml Normal file
View File

@@ -0,0 +1,20 @@
name: Pandora
tags:
- 工具
title: 潘多拉,一个让你呼吸顺畅的 ChatGPT
type: 工具
description: 潘多拉,一个让你呼吸顺畅的 ChatGPT
additionalProperties:
key: pandora
name: Pandora
tags:
- Tool
shortDescZh: 潘多拉,一个让你呼吸顺畅的 ChatGPT
shortDescEn: Pandora, a ChatGPT that helps you breathe smoothly
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://github.com/zhile-io/pandora
github: https://github.com/zhile-io/pandora
document: https://github.com/zhile-io/pandora/blob/master/doc/wiki.md

View File

@@ -0,0 +1,6 @@
CONTAINER_NAME="pandora"
PANEL_APP_PORT_HTTP="40040"
DATA_PATH="./data"
PROXY=""
API_BASE_URL="https://ai.fakeopen.com"
REVERSE_PROXY="https://ai.fakeopen.com"

View File

@@ -0,0 +1,38 @@
additionalProperties:
formFields:
- default: 40040
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data folder path
labelZh: 数据文件夹路径
required: true
type: text
- default: ""
edit: true
envKey: PROXY
labelEn: Specify the proxy in the formatprotocol://user:pass@ip:port.
labelZh: 指定代理格式protocol://user:pass@ip:port。
required: false
type: text
- default: https://ai.fakeopen.com
edit: true
envKey: API_BASE_URL
labelEn: OpenAI API interface address
labelZh: OpenAI API接口地址
required: true
type: text
- default: https://ai.fakeopen.com
edit: true
envKey: REVERSE_PROXY
labelEn: ChatGPT API reverse proxy
labelZh: ChatGPT API反向代理
required: true
type: text

View File

@@ -0,0 +1,44 @@
version: '3'
services:
pandora:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:40040"
volumes:
- "${DATA_PATH}:/data"
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
# 指定Access Token字符串。
#- PANDORA_ACCESS_TOKEN=${ACCESS_TOKEN}
# 指定一个存放多Access Token的文件路径。
#- PANDORA_TOKENS_FILE=${DATA_PATH}/TOKEN.txt
# 指定代理格式protocol://user:pass@ip:port。
- PANDORA_PROXY=${PROXY}
# 以http服务方式启动格式ip:port
- PANDORA_SERVER=0.0.0.0:40040
# 使用gpt-3.5-turboAPI请求你可能需要向OpenAI支付费用。
#- PANDORA_API=${API_KEY}
# 启用sentry框架来发送错误报告供作者查错敏感信息不会被发送。
#- PANDORA_SENTRY
# 显示调试信息,且出错时打印异常堆栈信息,供查错使用。
- PANDORA_VERBOSE
# 指定服务启动的线程数,默认为 8Cloud模式为 4。
- PANDORA_THREADS=4
- PANDORA_CLOUD=CLOUD
- OPENAI_API_PREFIX=${API_BASE_URL}
- CHATGPT_API_PREFIX=${REVERSE_PROXY}
#- OPENAI_EMAIL=${OPENAI_ACCOUNT}
#- OPENAI_PASSWORD=${OPENAI_PASSWORD}
#- OPENAI_MFA_CODE=${OPENAI_MFA}
tty: true
image: pengzhile/pandora:latest
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

BIN
apps/pandora/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB