ChatLunaLab / chatluna

多平台模型接入,可扩展,多种输出格式,提供大语言模型聊天服务的插件 | A bot plugin for LLM chat services with multi-model integration, extensibility, and various output formats
https://chatluna.chat
GNU Affero General Public License v3.0
177 stars 25 forks source link

[Help] RWKV 适配器无法启用 #46

Closed Lightupsky closed 1 year ago

Lightupsky commented 1 year ago

TypeError: missing required value at Function.resolve (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:188:13) at property (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:348:37) at C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:408:19 at Function.resolve (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:203:12) at C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:431:26 at Function.resolve (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:203:12) at schema (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\schemastery\lib\index.cjs:12:19) at resolveConfig (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\cordis\lib\index.cjs:201:14) at _NodeLoader.forkPlugin (C:\Users\light\AppData\Roaming\Koishi\Desktop\data\instances\default\node_modules\@koishijs\loader\lib\shared.js:221:35) at processTicksAndRejections (node:internal/process/task_queues:96:5)

找到了相关的Koishi Issue:https://github.com/koishijs/koishi/issues/1020 佬的开发效率太高啦ヽ(✿゚▽゚)ノ

dingyi222666 commented 1 year ago

这是不应该的吧。。。你填写对应的参数了吗?

image.png

dingyi222666 commented 1 year ago

上面两个都要填

Lightupsky commented 1 year ago

我找到真正的问题了,Apikey默认值是sk-,因为我rwkv后端也没修改过,所以没有修改这个值。检查koishi.yml之后发现这个字段没有写入,随便改了个值保存后就有了,可以正常启用了。

dingyi222666 commented 1 year ago

我找到真正的问题了,Apikey默认值是sk-,因为我rwkv后端也没修改过,所以没有修改这个值。检查koishi.yml之后发现这个字段没有写入,随便改了个值保存后就有了,可以正常启用了。

那我知道是什么问题了,我如果设置了 default 值,那就不应该设置 require 属性( 下个版本会改的