Skip to content

Commit

Permalink
new cloud ui for plugins
Browse files Browse the repository at this point in the history
Signed-off-by: pengzhile <[email protected]>
  • Loading branch information
pengzhile committed May 15, 2023
1 parent 64b81d9 commit 5f04dbd
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
2 changes: 2 additions & 0 deletions bin/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ fi

if [ -n "${PANDORA_SERVER}" ]; then
PANDORA_ARGS="${PANDORA_ARGS} -s ${PANDORA_SERVER}"
else
PANDORA_ARGS="${PANDORA_ARGS} -s 0.0.0.0"
fi

if [ -n "${PANDORA_API}" ]; then
Expand Down
10 changes: 9 additions & 1 deletion doc/wiki.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,16 @@

```shell
pip install 'pandora-chatgpt[api]'
// 或者
pip install pandora-chatgpt[api]
pandora
```
* 如果你想启用`cloud`模式:

```shell
pip install 'pandora-chatgpt[cloud]'
// 或者
pip install pandora-chatgpt[cloud]
pandora-cloud
```

Expand All @@ -62,13 +66,17 @@

```shell
pip install '.[api]'
// 或者
pip install .[api]
pandora
```

* 如果你想启用`cloud`模式:

```shell
pip install '.[cloud]'
// 或者
pip install .[cloud]
pandora-cloud
```

Expand Down Expand Up @@ -117,7 +125,7 @@
* 使用`Access Token`方式登录,可以无代理直连。
* [这个服务](https://ai.fakeopen.com/auth) 可以帮你安全有效拿到`Access Token`,无论是否第三方登录。
* 其中`accessToken`字段的那一长串内容即是`Access Token`
* `Access Token`可以复制保存,其有效期目前为`1个月`
* `Access Token`可以复制保存,其有效期目前为`14天`
* 不要泄露你的`Access Token`,使用它可以操纵你的账号。

## HTTP服务文档
Expand Down
10 changes: 9 additions & 1 deletion doc/wiki_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ Pandora, talking with ChatGPT in command lines, and with more surprises.

```shell
pip install 'pandora-chatgpt[api]'
// OR
pip install pandora-chatgpt[api]
pandora
```
* `cloud` mode:

```shell
pip install 'pandora-chatgpt[cloud]'
// OR
pip install pandora-chatgpt[cloud]
pandora-cloud
```

Expand All @@ -60,13 +64,17 @@ Pandora, talking with ChatGPT in command lines, and with more surprises.

```shell
pip install '.[api]'
// OR
pip install .[api]
pandora
```

* `cloud` mode:

```shell
pip install '.[cloud]'
// OR
pip install .[cloud]
pandora-cloud
```

Expand Down Expand Up @@ -116,7 +124,7 @@ These docker environment variables will override start parameters.

* no need for proxy if login with `Access Token`.
* you could obtain your access token safely with [this service](https://ai.fakeopen.com/auth).
* `Access Token` has a expiration time as `1 month`, you could save it and keep using within this period.
* `Access Token` has a expiration time as `14 days`, you could save it and keep using within this period.
* leaking your `Access Token` will lead to loss of your account.

## HTTP RESTful API
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
install_requires=requirements,
extras_require={
'api': requirements_api,
'cloud': ['pandora-cloud~=0.1.0'],
'cloud': ['pandora-cloud~=0.2.0'],
},
entry_points={
'console_scripts': [
Expand Down
2 changes: 1 addition & 1 deletion src/pandora/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '1.1.0'
__version__ = '1.1.1'

0 comments on commit 5f04dbd

Please sign in to comment.