Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
novelai0.3.1 readmefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sena-nana committed Oct 13, 2022
1 parent 7d891f1 commit f48250a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion nonebot-plugin-novelai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ aiohttp,aiofiles
- seed若省略则为自动生成
- 词条使用英文,使用逗号(中英都行,代码里有转换)分割,中文会自动机翻为英文,不支持其他语种

.aidraw on/off
- 启动/关闭本群的aidraw

## FEATURE
- [x] 内置优化词条模板并自动使用
- [x] 生成图片自动保存至data/novelai文件夹
Expand All @@ -48,4 +51,6 @@ aiohttp,aiofiles
- [x] 支持开启关闭功能
- [x] 支持机翻词条为英文
- [ ] 支持自搭服务器
- [ ] 支持白嫖别人的自搭服务器
- [ ] 支持白嫖别人的自搭服务器
- [ ] 支持数据统计
- [ ] 支持私聊
4 changes: 2 additions & 2 deletions nonebot-plugin-novelai/nonebot-plugin-novelai/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ def non_negative(cls, v: int, field: ModelField):
return field.default
return v

@validator("novelai_mode")
def non_negative(cls, mode: str, field: ModelField):
"""def check_mode(cls):
match mode:
case "novelai":
if cls.novelai_token:
Expand Down Expand Up @@ -65,6 +64,7 @@ def non_negative(cls, mode: str, field: ModelField):
else:
logger.error(f"请配置正确的运行模式,自动切换至public_naifu模式,该模式下运行不稳定")
return "public_naifu"
"""
def set_novelai(cls):
cls.novelai_api_domain: str = "https://api.novelai.net/"
cls.novelai_site_domain: str = "https://novelai.net/"
Expand Down

0 comments on commit f48250a

Please sign in to comment.