Skip to content

Commit

Permalink
update v2.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
KroMiose committed Dec 13, 2023
1 parent 75733a3 commit 344ce94
Show file tree
Hide file tree
Showing 6 changed files with 2,093 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
__pycache__
dist
tests
poetry.lock
/extensions/.gitignore

config
data
ext_cache
.env.dev
.env.prod
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,40 @@ nb plugin install nonebot-plugin-naturel-gpt

### > [点击前往 NG 文档站](https://ng.kro.zone)

## 🧑‍💻 开发指南

> 通过以下几步操作即可快速开始开发本插件
1. 克隆本仓库

```bash
git clone https://github.com/KroMiose/nonebot_plugin_naturel_gpt.git
```

2. 进入目录并安装依赖

```bash
cd nonebot_plugin_naturel_gpt
pip install poetry # 需要提前安装 Python 环境: 推荐 Python 3.10
poetry install --dev
```

3. 运行 Bot

```bash
nb run
```

## 🎢 更新日志

<details>
<summary>点击展开</summary>

### [2023/12/13] v2.1.9 失效依赖修复

- 锁定 OpenAI 依赖版本为 0.27~0.28 修复安装问题
- 修改项目结构为可单独运行的 Nonebot 机器人架构,方便功能开发

### [2023/11/28] Dall-e-3 绘图支持 | Stable Diffusion 绘图支持

- 新增 Dall-e-3 绘图扩展,支持使用Dall-e-3绘图(感谢@微量元素 提供 pr)
Expand Down
29 changes: 16 additions & 13 deletions docs/extension_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ sd_base_api: http://127.0.0.1:7860
chat_model: gpt-3.5-turbo

# 绘图固定正面提示词
always_improve_prompt: (best quality,4k,8k,masterpiece:1.2),ultra-detailed,(realistic,photorealistic,photo-realistic:1.37),
always_improve_prompt: masterpiece, best quality,extremely detailed CG unity 8k wallpaper,

# 绘图固定负面提示词
always_negative_prompt: too many fingers, long neck, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad feet,futa,pink hair,((poorly drawn hands)), ((poorly drawn face)), (((mutation))), (((deformed))), ((ugly)), blurry, ((bad anatomy)), (((bad proportions))), ((extra limbs)), cloned face, (((disfigured))), (((more than 2 nipples))), out of frame, ugly, extra limbs, (bad anatomy), gross proportions, (malformed limbs), ((missing arms)), ((missing legs)), (((extra arms))), (((extra legs))), mutated hands, (fused fingers), (too many fingers), (((long neck))), missing fingers, extra digit, fewer digits, bad feet, nsfw,
always_negative_prompt: paintings, cartoon, anime, sketches, worst quality, low quality, normal quality, lowres, watermark, monochrome, grayscale, ugly, blurry, Tan skin, dark skin, black skin, skin spots, skin blemishes, age spot, glans, disabled, distorted, bad anatomy, morbid, malformation, amputation, bad proportions, twins, missing body, fused body, extra head, poorly drawn face, bad eyes, deformed eye, unclear eyes, cross-eyed, long neck, malformed limbs, extra limbs, extra arms, missing arms, bad tongue, strange fingers, mutated hands, missing hands, poorly drawn hands, extra hands, fused hands, connected hand, bad hands, wrong fingers, missing fingers, extra fingers, 4 fingers, 3 fingers, deformed hands, extra legs, bad legs, many legs, more than two legs, bad feet, wrong feet, extra feet, nsfw

# 绘制图片尺寸
img_size: 512
```

<hr />
Expand All @@ -49,7 +52,7 @@ always_negative_prompt: too many fingers, long neck, bad anatomy, bad hands, tex

### 简介 <!-- {docsify-ignore} -->

调用dall-e-3绘制图像并发送
调用 dall-e-3 绘制图像并发送

### 配置 <!-- {docsify-ignore} -->

Expand Down Expand Up @@ -174,7 +177,7 @@ pic_proxy: null

```yml
# [必填] 平台 token (需自行申请)
token: ''
token: ""
```

<hr />
Expand All @@ -197,10 +200,10 @@ ng_voice_translate_on: false
tencentcloud_common_region: ap-shanghai

# 腾讯翻译 Secret ID
tencentcloud_common_secretid: ''
tencentcloud_common_secretid: ""

# 腾讯翻译 Secret Key
tencentcloud_common_secretkey: ''
tencentcloud_common_secretkey: ""

# 翻译目标语言
g_voice_tar: ja
Expand Down Expand Up @@ -253,10 +256,10 @@ ng_voice_translate_on: false
tencentcloud_common_region: ap-shanghai

# 腾讯翻译 Secret ID
tencentcloud_common_secretid: ''
tencentcloud_common_secretid: ""

# 腾讯翻译 Secret Key
tencentcloud_common_secretkey: ''
tencentcloud_common_secretkey: ""

# 翻译目标语言
g_voice_tar: ja
Expand Down Expand Up @@ -285,13 +288,13 @@ api_url: 127.0.0.1:50021

```yml
# [必填] 邮箱 SMTP 授权码
SMTP_CODE: ''
SMTP_CODE: ""

# [必填] 邮箱地址
SENDER_ADDR: ''
SENDER_ADDR: ""

# SMTP 连接地址,默认 163 邮箱
SMTP_ADDR: 'smtp.163.com'
SMTP_ADDR: "smtp.163.com"

# SMTP 连接端口,没有特殊需求不要填写
SMTP_PORT: null
Expand All @@ -317,11 +320,11 @@ SMTP_USE_TLS: true
```yml
# [必填] 谷歌搜索 api_key
# 申请地址:https://developers.google.com/custom-search/v1/introduction?hl=zh-cn
apiKey: ''
apiKey: ""

# [必填] 谷歌搜索 cx_key
# 申请地址:https://programmablesearchengine.google.com/controlpanel/all
cxKey: ''
cxKey: ""

# 代理服务器地址
proxy: null
Expand Down
2 changes: 1 addition & 1 deletion docs/minecraft.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

注意事项:

- NoneBot 应使用 `ReverseDriver`,也就是需要使用 **反向 WS** 连接到 GoCQ
- NoneBot 应使用 `ReverseDriver`,也就是需要使用 **反向 WS** 连接到 你的 MC 服务端
- 配置文件中 `websocket_url` 的值部分应为 `ws://<NoneBot所在IP>:<NoneBot监听端口>/spigot/ws`,例如 `ws://127.0.0.1:8765/spigot/ws`
- 如果你的 MC 服务器和 NoneBot 不在同一台服务器上,需要在 NoneBot 的 `.env` 文件中将 NoneBot 的监听地址改为 `0.0.0.0` 并放行对应端口,否则将导致连接失败

Expand Down
Loading

0 comments on commit 344ce94

Please sign in to comment.