Git Product home page Git Product logo

novelai-bot's Issues

Noise和Strength客製化

在novelAI裡,可以根據Noise和Strength去改變生成圖片與原本圖片的差距。
我看index.ts裡的Noise和Strength都是預設值,感覺有點可惜
不知道shigma大大有沒有想要添加這個功能呢?

发生未知错误

2022-10-12 13:53:37 [E] novelai Error: connect ETIMEDOUT 104.26.7.92:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16)

关于稳定的扩散网页用户界面应用程序接口 / About stable diffusion webui API

Summary

Currently, the stable diffusion WebUI (abbr. sd-webui) API is still in progress, you can track it at AUTOMATIC1111/stable-diffusion-webui#765

To use this feature, you should make sure the stable diffusion webui that you're using is the one from AUTOMATIC1111 and updated to the latest commit.

If you are not sure what and which version you are using, please follow this guide to fetch a new one!

You could run sd-webui with --api parameter to enable the API routes:

Then, in your koishi console, switch to Plugin Configuration -> novelai, down to Login Settings, set type to sd-webui, then write your IP address with port of the machine running sd-webui to endpoint field. (e.g. 127.0.0.1:7860 or 192.168.1.100:7860, etc)

image

Progress

  • txt2img
  • img2img

Bugs

You can report bugs or issues here in the comments.


概括

目前稳定的扩散网页用户界面(简称 sd-webui)应用程序接口仍在进行中,您可以在 AUTOMATIC1111/stable-diffusion-webui#765 进行跟踪

要使用这个功能,你需要确保你的 稳定的扩散网页用户界面 是来自于 自动1111 的,并且已更新到最新的提交。

如果你不确定你在运行的是什么版本,请跟随这个指南获取一个新的!

你可以用--api参数运行sd-webui,以启用应用程序接口路由:

然后,在你的恋石控制台,切换到 "插件配置"->"novelai",向下到 "登录设置",将 "类型" 设置为 "sd-webui",然后将你运行sd-webui的机器的IP地址和端口写到 "终结点" 字段。(例如:127.0.0.1:7860 或者 192.168.1.100:7860 等)

image

进步

  • txt2img
  • img2img

错误

你可以在这里的评论中报告错误和问题。

Bug: 使用风控号约稿会导致 Koishi 卡死,必须手动重启

Koishi/4.9.6,koishi-plugin-gocqhttp3.1.3,ws协议
请求能到达nai,但画完成后没有回复并进入卡死状态,后台虽然有响应但使用chat插件无法向任何人发送消息,无新日志输出
使用的tag:
(((masterpiece))),best quality, illustration,(beautiful detailed girl),beautiful detailed glow,detailed ice,beautiful detailed water,(beautiful detailed eyes),expressionless,beautiful detailed white gloves, (floating palaces:1.3),azure hair,disheveled hair,long bangs, hairs between eyes, (skyblue dress),black ribbon,white bowties,midriff,{{{half closed eyes}}},,big forhead,blank stare,flower,large top sleeves,(((ice crystal texture wings)))

Negative prompt: multiple breasts, (mutated hands and fingers:1.5 ), (long body :1.3), (mutation, poorly drawn :1.2) , black-white, bad anatomy, liquid body, liquid tongue, disfigured, malformed, mutated, anatomical nonsense, text font ui, error, malformed hands, long neck, blurred, lowers, lowres, bad anatomy, bad proportions, bad shadow, uncoordinated body, unnatural body, fused breasts, bad breasts, huge breasts, poorly drawn breasts, extra breasts, liquid breasts, heavy breasts, missing breasts, huge haunch, huge thighs, huge calf, bad hands, fused hand, missing hand, disappearing arms, disappearing thigh, disappearing calf, disappearing legs, fused ears, bad ears, poorly drawn ears, extra ears, liquid ears, heavy ears, missing ears, fused animal ears, bad animal ears, poorly drawn animal ears, extra animal ears, liquid animal ears, heavy animal ears, missing animal ears, text, ui, error, missing fingers, missing limb, fused fingers, one hand with more than 5 fingers, one hand with less than 5 fingers, one hand with more than 5 digit, one hand with less than 5 digit, extra digit, fewer digits, fused digit, missing digit, bad digit, liquid digit, colorful tongue, black tongue, cropped, watermark, username, blurry, JPEG artifacts, signature, 3D, 3D game, 3D game scene, 3D character, malformed feet, extra feet, bad feet, poorly drawn feet, fused feet, missing feet, extra shoes, bad shoes, fused shoes, more than two shoes, poorly drawn shoes, bad gloves, poorly drawn gloves, fused gloves, bad cum, poorly drawn cum, fused cum, bad hairs, poorly drawn hairs, fused hairs, big muscles, ugly, bad face, fused face, poorly drawn face, cloned face, big face, long face, bad eyes, fused eyes poorly drawn eyes, extra eyes, malformed limbs, more than 2 nipples, missing nipples, different nipples, fused nipples, bad nipples, poorly drawn nipples, black nipples, colorful nipples, gross proportions. short arm, (((missing arms))), missing thighs, missing calf, missing legs, mutation, duplicate, morbid, mutilated, poorly drawn hands, more than 1 left hand, more than 1 right hand, deformed, (blurry), disfigured, missing legs, extra arms, extra thighs, more than 2 thighs, extra calf, fused calf, extra legs, bad knee, extra knee, more than 2 legs, bad tails, bad mouth, fused mouth, poorly drawn mouth, bad tongue, tongue within mouth, too long tongue, black tongue, big mouth, cracked mouth, bad mouth, dirty face, dirty teeth, dirty pantie, fused pantie, poorly drawn pantie, fused cloth, poorly drawn cloth, bad pantie, yellow teeth, thick lips, bad cameltoe, colorful cameltoe, bad asshole, poorly drawn asshole, fused asshole, missing asshole, bad anus, bad pussy, bad crotch, bad crotch seam, fused anus, fused pussy, fused anus, fused crotch, poorly drawn crotch, fused seam, poorly drawn anus, poorly drawn pussy, poorly drawn crotch, poorly drawn crotch seam, bad thigh gap, missing thigh gap, fused thigh gap, liquid thigh gap, poorly drawn thigh gap, poorly drawn anus, bad collarbone, fused collarbone, missing collarbone, liquid collarbone, strong girl, obesity, worst quality, low quality, normal quality, liquid tentacles, bad tentacles, poorly drawn tentacles, split tentacles, fused tentacles, missing clit, bad clit, fused clit, colorful clit, black clit, liquid clit, QR code, bar code, censored, safety panties, safety knickers, beard, furry ,pony, pubic hair, mosaic, excrement, faeces, shit, futa, testis

Feature Request: 自动撤回 prompt

出于避免刷屏的目的,既然机器人的输出中会带有 prompt,可以在输出图片时撤回用户的输入
我注意到很多用户都自觉地在机器人收到之后手动的撤回

Feat req: Support API for NAIFU or hydra-http-node

This supports NAIFU or other solutions of self-hosted Novelai instances.

The API differs in POST parameters, in which model does not exist, as for models are loaded on hydra side. POST JSON body of hydra is exactly the parameters field of official Novelai, where input field is prompt here.

反馈下使用过程遇到的问题

image
这个地方设置成0.0.0.0,这种情况下,open还是在本地打开,所以应该还是要localhost的。
image
image

image
这个点击保存后,应该加个提示保存成功与否,我一开始以为一直都没保存成功。

在1.7.2及之后的版本中,违禁词功能不生效

Summary

复现到的平台 koishi:在windows桌面版0.7.1、windwos下git拉取后新建模板项目、koishi-android v0.0.3
(windows桌面版0.7.1的情况下)NovelAI bot版本:

版本 违禁词功能
1.6 OK
1.7.0 OK
1.7.1 OK
1.7.2 NG
1.7.3 NG
1.7.5 NG
1.11.5 NG

复现步骤:

forbidden设置中添加 1234,然后在沙盒中执行:约稿 1234
实际结果:1.7.2及之后的版本,带违禁词的约稿会被执行。
期望结果:提示有违禁词。不执行约搞。
概率:必现

在不切换新旧版本的情况下执行“约稿 1234”时,log中没有看到报错。

Logs

2022-10-24 14:22:42[I] appKoishi/4.9.6
2022-10-24 14:22:42[I] app apply plugin group:basic
2022-10-24 14:22:42[I] app apply plugin suggest
2022-10-24 14:22:42[I] app apply plugin rate-limit
2022-10-24 14:22:42[I] app apply plugin group:console
2022-10-24 14:22:42[I] app apply plugin locales
2022-10-24 14:22:42[I] app apply plugin console
2022-10-24 14:22:42[I] app apply plugin dataview
2022-10-24 14:22:42[I] app apply plugin logger
2022-10-24 14:22:42[I] app apply plugin insight
2022-10-24 14:22:42[I] app apply plugin commands
2022-10-24 14:22:42[I] app apply plugin market
2022-10-24 14:22:42[I] app apply plugin sandbox
2022-10-24 14:22:42[I] app apply plugin group:database
2022-10-24 14:22:42[I] app apply plugin status
2022-10-24 14:22:42[I] app apply plugin group:adapter
2022-10-24 14:22:42[I] app apply plugin database-sqlite
2022-10-24 14:22:42[I] app server listening at http://localhost:5140/
2022-10-24 14:22:42[I] app apply plugin gocqhttp
2022-10-24 14:22:42[I] app apply plugin novelai:9gdzhk
2022-10-24 14:22:42[I] sqlite auto updating table user
2022-10-24 14:22:42[I] sqlite auto updating table channel
2022-10-24 14:22:42[I] sqlite auto updating table stats_daily
2022-10-24 14:22:42[I] sqlite auto updating table stats_hourly
2022-10-24 14:22:42[I] sqlite auto updating table stats_longterm
2022-10-24 14:23:44[I] sqlite auto updating table stats_longterm
2022-10-24 14:24:25[I] app unload plugin novelai:9gdzhk
2022-10-24 14:24:29[I] app apply plugin novelai:9gdzhk

Configuration

koishi.yml的内容(邮箱和密码为示例):

host: localhost
port: 5140
maxPort: 5149
plugins:
  group:basic:
    help: null
    rate-limit: null
    suggest: null
    locales: null
    commands: null
    ~admin: null
    ~bind: null
  group:console:
    console:
      open: true
    dataview: null
    logger: null
    insight: null
    market:
      registry:
        endpoint: https://registry.npmmirror.com
      search:
        endpoint: https://registry.koishi.chat/index.json
    sandbox: null
    status: null
    ~auth: null
  group:database:
    database-sqlite: null
    ~database-mysql: null
    ~database-mongo: null
  group:adapter:
    ~adapter-onebot: null
    ~adapter-discord: null
    ~adapter-telegram: null
    ~adapter-kook: null
    gocqhttp: null
  ~novelai:9gdzhk:
    type: login
    email: [email protected]
    password: 123
    forbidden: '1234'
    allowAnlas: false

Edited by @MaikoTan for better readability

私服怎么搭建?

To expose an API endpoint of your app in these API docs, set the api_name parameter of the event listener. For more information, see the "API Page" section in the guides. To hide this API page, set show_api=False in the Blocks.launch() method.

See the "view api" link in footer of the app above? This is a page that documents the REST API that users can use to query the function. apps can also generate an API page, though the API has to be explicitly named for each event listener, such asInterfaceBlocks
btn.click(add, [num1, num2], output, api_name="addition")
This will document the endpoint to the automatically generated API page. /api/addition/
很明显api需要自己设置,可我不清楚参数啊~

想请教一下

目前如何实现img2img?
是直接更改post的请求体吗

在kook里不能使用img2img功能

我把图片做成表情放在聊天栏,显示"只接受英文输入。",不做成表情直接放上去又放不上,它会直接把图片先越过文字发出去,先把图片发出去,然后回复图片吧,干脆就没反应不识别了。
image
image
image

增强图片发生未知错误

复现方法:
输入:
增强 + 图片
反回:
在画了在画了
发生未知错误。

已确认开启允许anlas
已确认有足够的anlas
已确认 约稿 tag 指令正常

log:

�[38;5;8m2022-10-10 18:39:15�[0m [D] �[38;5;32;1mgocqhttp�[0m 收到群 GUILD 内 USER 的消息: 增强 [CQ:image,file=3e2648db65a062028503d1b78776f949.image,subType=1,url=URL] (-1293613710)
�[38;5;8m2022-10-10 18:39:16�[0m [D] �[38;5;32;1mgocqhttp�[0m 发送群 GUILD 的消息: [{"type":" ... (-975030812)
�[38;5;8m2022-10-10 18:39:16�[0m [D] �[38;5;32;1mgocqhttp�[0m 收到群 GUILD 内 MYSELF 的消息: 在画了在画了 (-975030812)
�[38;5;8m2022-10-10 18:39:18�[0m [D] �[38;5;32;1mgocqhttp�[0m 收到群 GUILD 内 MYSELF 的消息: 发生未知错误。 (1558930526)
�[38;5;8m2022-10-10 18:39:18�[0m [D] �[38;5;32;1mgocqhttp�[0m 发送群 GUILD 的消息: [{"type":" ... (1558930526)

Feature Request:使用回复的方式展示生成的图片

image

如题,现在的 one bot 可以在 qq 群中实现如上的效果吗,就是不提供种子和参数,同时直接将生成的图片作为画图指令的回复。这样的话不用点进转发消息也可以看到图片了,而且也知道图片对应的 prompts 是哪些,消息数量也不会很多。

作者你好,能问问收录/友链事宜吗?

大大你好,我是aiguidebook.top(有时在检修,无法访问,可以看我主页联系我),一个关于ai绘图的WIKI站长
我看到你选择了MIT协议
我这里缺一些教程,能问问大大愿不愿意来收录
如果不允许转载,能问问可以互加友链吗

控制台basePrompt功能的输入貌似没法识别换行 因此没法识别negative prompt

官方的示例:

约稿 girl
negative prompt: loli

示例里negative prompt前面有个回车
image

但显示机器人收到的prompt里negative prompt: loli没出现

在官方结果对比 negative prompt大概生效了只是没显示
image
image

在basePrompt的输入栏输入自定义的一些tag后

masterpiece,best quality,ultra-detailed, illustration,disheveled hair
negative prompt: longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality

image
结果里出现了negative prompt: 和后续内容 大概意味着negative prompt没被正确识别
又试了下往basePrompt里的内容加\n 或者 \

masterpiece,best quality,ultra-detailed, illustration,disheveled hair
\n negative prompt: longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality

image
好像还是不行

basePrompt清空的情况下输入同样的内容

约稿 hatsune_miku, masterpiece,best quality,ultra-detailed, illustration,disheveled hair
negative prompt: longbody, lowres, bad anatomy, bad hands, missing fingers, pubic hair,extra digit, fewer digits, cropped, worst quality, low quality

image

错误原因可能是因为basePrompt的输入栏只有一行 没法识别换行?
又或者跟另一个issue里的问题一样 tag太多的情况下除了会卡死以外还会有别的问题?
image

也在basePrompt里试了-u, 也没有用

关于sdwebui的api问题

首先感谢制作插件
在type中选择了sd-webui,api接口地址填写为:http://127.0.0.1:7860,并在启动webui时添加了--api,
且修改webui下的api.py中images: list[str]为List[str],在文件顶部附加from typings import List。
但向bot发送绘图命令后返回结果是:请求失败 (EPROTO),请稍后重试。
webui在cmd返回显示WARNING: Invalid HTTP request received.
想了解如何处理这个问题,再次感谢

图片解析失败

好多图片都解析失败,可能是分辨率问题吗,小的图片倒是可以以图生图,版本1.8.6

最新版本1.11.0会导致传输的tag不一样

更新到最新版本后,输入和之前版本相同的tag,图片会不一样,在没有负面过滤的情况下图片会变得更诡异。
另外请问下官网的Add Quality Tags功能在bot上是默认开启的吗。

img2img在naifu上的使用问题

如果我要使用naifu,并且要用到img2img,打开了allowAnlas,可是naifu不是官方的,这样就导致用不了的情况,只能使用text2img

图片解析失败

是需要配置代理服务器地址吗?
一般是根据什么配置?

需要undesired Contents参数

RT,这个用的还蛮多的
默认的超时时间建议设高一些,这算一个小坑
另外API 服务器地址可能是在哪里写死了,我无法通过直接修改来变更,需要手动把代码批量替换掉

增加一次生成多张图片的功能

Novelai官网的25刀订阅生成单张图片不需要点数,但是一次生成多张图片需要,但实际上一次生成多张图片和自己手动快速回车几次的效果(花费的时间)是一样的,可不可以利用机器人实现免费的一次生成多张图片呢?
(使用排队生成最后收集起来一起发送回去的形式,或者挨个发送的形式?)
这样对于希望反复使用一个tag抽出最佳图片的用户来说很方便,同时又不需要点数,会是一个实用的功能。

希望可以增加对_\和l\的支持

是否可以增加对_\和l\的支持 是描述背景用的 效果不错
ps 如果可以指定一个更好的分辨率就更好了 (比如1024x1024

微信图片_20221021120246
微信图片_20221021120252

[已解决] 无法点击GUI中二维码链接,扫码后无法获得 session.token

解决方法:
按下文的 尝试解决 与 再次尝试解决 做完后。多次停用再启用 go-cqhttp 和 adapter-onebot
具体原因未知

复现方法:
在 插件市场 中下载 koishi-plugin-novelai 1.5.5
在 依赖管理 中将 @koishijs/plugin-adapter-onebot 更新至 5.2.3
在 依赖管理 中将 koishi-plugin-gocqhttp 更新至 3.1.1
在 插件配置 中配置好 novelai 并启用,在沙盒中确认可以使用
在 插件配置 中配置好 gocqhttp 并停用再启用
在 插件配置 中配置好 adapter-onebot 并启用
点击GUI中的链接进行滑条验证
在第二部验证中无法点击二维码选项

尝试解决:
进入 C:\Users\Administrator\Downloads\koishi-desktop-win-x64-v0.6.1\data\instances\default\accounts\QQ_ACCOUNT\logs
打开 DATA.txt, 最后一行有二维码链接
把链接复制进浏览器并成功扫码
在 插件配置 将 adapter-onebot 停用再启用
显示 已成功创建 go-cqhttp 子进程。
使用QQ交互没有反应

问题表征:
弹出空白go-cqhttp.exe执行窗口
C:\Users\Administrator\Downloads\koishi-desktop-win-x64-v0.6.1\data\instances\default\accounts\QQ_ACCOUNT\logs 不更新
C:\Users\Administrator\Downloads\koishi-desktop-win-x64-v0.6.1\data\instances\default\accounts\QQ_ACCOUNT 下缺失session.token

再次尝试解决:
将 QQ_ACCOUNT 目录下的 config.yml 以及 device.json 复制进C:\Users\Administrator\Downloads\koishi-desktop-win-x64-v0.6.1\data\instances\default\node_modules\go-cqhttp\bin
通过cmd运行C:\Users\Administrator\Downloads\koishi-desktop-win-x64-v0.6.1\data\instances\default\node_modules\go-cqhttp\bin\go-cqhttp.exe,顺利得到 session.token 并在 go-cqhttp.exe 窗口中可以看到qq消息
将 session.token 复制到 QQ_ACCOUNT 目录下, 在 插件配置 将adapter-onebot 停用再启用
显示 已成功创建 go-cqhttp 子进程。
然而使用QQ交互依然没有反应,且log不更新

相关配置文件:

# go-cqhttp 默认配置文件
# https://github.com/Mrs4s/go-cqhttp/blob/177ba9d8c2b1d86301f0bf3e0714710fe3c40af4/modules/config/default_config.yml

# 账号相关
account:
  # QQ账号
  uin: 123456
  # 密码为空时使用扫码登录
  password: 'wwwwww'
  # 是否开启密码加密
  encrypt: false
  # 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
  status: 0

  # 重连设置
  relogin:
    # 首次重连延迟, 单位秒
    delay: 3
    # 重连间隔
    interval: 3
    # 最大重连次数, 0为无限制
    max-times: 0

  # 是否使用服务器下发的新地址进行重连
  # 注意, 此设置可能导致在海外服务器上连接情况更差
  use-sso-address: true
  # 是否允许发送临时会话消息
  allow-temp-session: false

heartbeat:
  # 心跳频率, 单位秒
  # -1 为关闭心跳
  interval: 5

message:
  # 上报数据类型
  # 可选: string, array
  post-format: string
  <<: {"ignore-invalid-cqcode":true,"force-fragment":false,"fix-url":true,"proxy-rewrite":"","report-self-message":true,"remove-reply-at":true,"extra-reply-data":true,"skip-mime-scan":false}

output:
  # 日志等级 trace,debug,info,warn,error
  log-level: warn
  # 日志时效 单位天. 超过这个时间之前的日志将会被自动删除. 设置为 0 表示永久保留.
  log-aging: 15
  # 是否在每次启动时强制创建全新的文件储存日志. 为 false 的情况下将会在上次启动时创建的日志文件续写
  log-force-new: true
  # 是否启用日志颜色
  log-colorful: true
  # 是否启用调试模式
  debug: false

# 默认中间件锚点
default-middlewares: &default
  # 访问密钥, 强烈推荐在公网的服务器设置
  access-token: ''
  # 事件过滤器文件目录
  filter: ''
  # API限速设置
  # 该设置为全局生效
  # 原 cqhttp 虽然启用了 rate_limit 后缀, 但是基本没插件适配
  # 目前该限速设置为令牌桶算法, 请参考:
  # https://baike.baidu.com/item/%E4%BB%A4%E7%89%8C%E6%A1%B6%E7%AE%97%E6%B3%95/6597000?fr=aladdin
  rate-limit:
    enabled: false # 是否启用限速
    frequency: 1  # 令牌回复频率, 单位秒
    bucket: 1     # 令牌桶大小

# 数据库相关设置
database:
  leveldb:
    # 是否启用内置leveldb数据库
    # 启用将会增加10-20MB的内存占用和一定的磁盘空间
    # 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
    enable: true

  # 媒体文件缓存, 删除此项则使用缓存文件(旧版行为)
  cache:
    image: data/image.db
    video: data/video.db

servers:
  # HTTP 通信设置
  # https://github.com/Mrs4s/go-cqhttp/blob/177ba9d8c2b1d86301f0bf3e0714710fe3c40af4/server/http.go#L82
  - http:
      # 是否关闭正向HTTP服务器
      disabled: true
      # HTTP监听地址
      address: 
      # 反向HTTP超时时间, 单位秒
      # 最小值为5,小于5将会忽略本项设置
      timeout: 5
      # 长轮询拓展
      long-polling:
        enabled: false
        # 消息队列大小,0 表示不限制队列大小,谨慎使用
        max-queue-size: 2000
      middlewares:
        <<: *default # 引用默认中间件
      # 反向HTTP POST地址列表
      post:
        - url: http://localhost:5140/onebot
          secret: ''
          # 最大重试,0 时禁用
          # max-retries: 3
          # 重试时间,单位毫秒,0 时立即
          # retries-interval: 1500

  # 正向WS设置
  # https://github.com/Mrs4s/go-cqhttp/blob/177ba9d8c2b1d86301f0bf3e0714710fe3c40af4/server/websocket.go#L79
  - ws:
      # 是否禁用正向WS服务器
      disabled: true
      # 正向WS服务器监听地址
      address: 
      middlewares:
        <<: *default # 引用默认中间件

  # 反向WS设置
  # https://github.com/Mrs4s/go-cqhttp/blob/177ba9d8c2b1d86301f0bf3e0714710fe3c40af4/server/websocket.go#L87
  - ws-reverse:
      # 是否禁用当前反向WS服务
      disabled: false
      # 反向WS Universal 地址
      # 注意 设置了此项地址后下面两项将会被忽略
      universal: ws://localhost:5140/onebot
      # 反向WS API 地址
      # api: ws://your_websocket_api.server
      # 反向WS Event 地址
      # event: ws://your_websocket_event.server
      # 重连间隔 单位毫秒
      reconnect-interval: 3000
      middlewares:
        <<: *default # 引用默认中间件

koishi.yml

host: localhost
port: 5140
maxPort: 5149
plugins:
  group:basic:
    help: null
    ~rate-limit: null
    suggest: null
  group:console:
    console:
      open: true
    ~dataview: null
    logger: null
    insight: null
    market:
      registry:
        endpoint: https://registry.npmmirror.com
      search:
        endpoint: https://registry.koishi.chat/index.json
    sandbox: null
    status: null
  group:adapter:
    adapter-onebot:
      selfId: '123456'
      gocqhttp:
        password: wwwwww
        enabled: true
      protocol: ws-reverse
    ~adapter-discord: null
    ~adapter-telegram: null
    gocqhttp:
      message:
        ignore-invalid-cqcode: true
        fix-url: true
        remove-reply-at: true
        extra-reply-data: true
        report-self-message: true
  ~:un1at3: {}
  novelai:
    token: >-
      MY_TOKEN
    allowAnlas: false

关于在QQ频道使用bot的问题

你好,我配合koishi上的adapter-qqguild插件尝试在QQ频道部署bot
无论是使用naifu还是sd-webui,bot的回复中都不带有图像
现在已知的问题是使用指令进行绘画后,QQ频道内的bot只回复:
QQ截图20221024172705
没有生成的图像输出
而在koishi自带的沙盒中输出为:
微信截图_20221024172814
请问这种情况该如何解决呢,是否是因为输出的是base64的图像,而不是本地已生成图像的原因

发生未知错误 (401)。

更新至 koishi 4.9.5 和 koishi-plugin-novelai 1.9.5 后,在 koishi 沙盒中测试:
Carol
约稿 plane
Koishi
在画了在画了
Koishi
发生未知错误 (401)。
配置中新增的 headers 项都使用的默认值

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.