111
kouki 发布的帖子
-
求助:有没有办法通过mirai或插件来限制整体的消息发送速度
https://mirai.mamoe.net/topic/2134
我更新到1.15-M1版本,并使用此插件,解决了45问题
因为频繁使用导致了屏蔽,也挂了一段时间来尝试解决(也试过删除cache 和 device.json)但都没成功
限制消息发送速度是插件作者提供的最后解决办法
我实在找不到来此求助orz -
RE: OpenAI ChatBot 插件,已添加预设功能(为啥你们都想整猫娘)
请问这样的报错是为何出现的,他出现就会强行stop,有没有办法让他继续或者保留之前的内容
2023-04-19 02:17:31 W/MiraiOpenAiListener: MiraiOpenAiListener with GroupMessageEvent(group=“所在群号”, senderName=“群聊昵称”, sender=“使用者QQ”, permission=OWNER, message=[mirai:source:ids=[114142], internalIds=[-“所在群号”], from group “使用者QQ” to “所在群号” at 1681840664]chat) xyz.cssxsh.openai.OpenAiException: This model's maximum context length is 4097 tokens. However, you requested 4102 tokens (3590 in the messages, 512 in the completion). Please reduce the length of the messages or completion. at mirai-openai-plugin-1.5.0.mirai2.jar//xyz.cssxsh.openai.OpenAiClient$http$1$4$1.invokeSuspend(OpenAiClient.kt:60) at mirai-openai-plugin-1.5.0.mirai2.jar//xyz.cssxsh.openai.OpenAiClient$http$1$4$1.invoke(OpenAiClient.kt) at mirai-openai-plugin-1.5.0.mirai2.jar//xyz.cssxsh.openai.OpenAiClient$http$1$4$1.invoke(OpenAiClient.kt) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator.validateResponse(HttpCallValidator.kt:47) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator.access$validateResponse(HttpCallValidator.kt:40) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator$Companion$install$3.invokeSuspend(HttpCallValidator.kt:148) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at mirai-openai-plugin-1.5.0.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
-
RE: 本地搭建NovelAi (免费的色图生成器,可用colab在线运行)
虽然这么就再打扰很不好,但我真的很需要你的帮助T T
venv "E:\ai\webui\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: ea9bd9fc7409109adcd61b897abc2c8881161256
Installing requirements for Web UI
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
Loading weights [a7529df023] from E:\ai\webui\stable-diffusion-webui\models\Stable-diffusion\model.ckpt
Creating model from config: E:\ai\webui\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(0):
Model loaded in 13.1s (load weights from disk: 7.2s, load config: 0.1s, create model: 0.5s, apply weights to model: 1.1s, apply half(): 0.9s, move model to device: 1.1s, load textual inversion embeddings: 2.1s).
Running on local URL: http://127.0.0.1:7860To create a public link, set
share=True
inlaunch()
.
Traceback (most recent call last):
File "E:\ai\webui\stable-diffusion-webui\launch.py", line 361, in <module>
start()
File "E:\ai\webui\stable-diffusion-webui\launch.py", line 356, in start
webui.webui()
File "E:\ai\webui\stable-diffusion-webui\webui.py", line 232, in webui
app.add_middleware(GZipMiddleware, minimum_size=1000)
File "E:\ai\webui\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 135, in add_middleware
raise RuntimeError("Cannot add middleware after an application has started")
RuntimeError: Cannot add middleware after an application has started
请按任意键继续. . . -
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
@茶色cha /nai swimsuit #steps=28 #scale=7 #width=768 #height=512 “萝莉,精灵”
这样 -
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
虽然觉得麻烦不好,但.....
2022-10-17 13:43:08 E/novelai-helper: Exception in coroutine Plugin xyz.cssxsh.mirai.plugin.novelai-helper of novelai-helper
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown Source)
at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown Source)
at java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown Source)
at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)
at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)
at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at novelai-helper-1.0.9.mirai2 .jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at java.base/sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at java.base/sun.security.validator.Validator.validate(Unknown Source)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 32 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.base/java.security.cert.CertPathBuilder.build(Unknown Source)
... 37 more(顺便我改了timeout也会超时)
-
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
@cssxsh 啊,刚刚webui被我玩掉了,重启后成功了
辛苦了!
(再次 -
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
@cssxsh 这....
2022-10-16 03:21:41 W/novelai-helper: Exception in executing command `[mirai:source:ids=[81798], internalIds=[-1615508156], from group 3108662048 to 589901267 at 1665861698]/nai-fu 1` java.net.ConnectException: Failed to connect to localhost/127.0.0.1:6969 at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.net.ConnectException: Connection refused: no further information at java.base/sun.nio.ch.Net.pollConnect(Native Method) at java.base/sun.nio.ch.Net.pollConnectNow(Unknown Source) at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(Unknown Source) at java.base/sun.nio.ch.NioSocketImpl.connect(Unknown Source) at java.base/java.net.SocksSocketImpl.connect(Unknown Source) at java.base/java.net.Socket.connect(Unknown Source) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295) ... 18 more
-
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
@cssxsh 这样.....
naifu_api: 'http://localhost:6969'2022-10-16 03:06:00 W/novelai-helper: Exception in executing command `[mirai:source:ids=[81796], internalIds=[1335086546], from group 3108662048 to 589901267 at 1665860757]/nai-fu 1` java.net.UnknownHostException: private hosts not resolved at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.dnsoverhttps.DnsOverHttps.lookup(DnsOverHttps.kt:69) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:164) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:129) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
@cssxsh 是这个样子能直接进入网页
naifu_api: 'http://127.0.0.1:6969'
这是naifu最后一段
INFO: Uvicorn running on http://0.0.0.0:6969 (Press CTRL+C to quit) -
RE: NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
爆红了..
2022-10-16 02:41:35 I/novelai-helper: generate image seed: 185524225, tags: 1 2022-10-16 02:41:35 W/novelai-helper: Exception in executing command `[mirai:source:ids=[81791], internalIds=[398139547], from group 3108662048 to 589901267 at 1665859292]/nai-fu 1` java.net.UnknownHostException: 127.0.0.1: NXDOMAIN at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.dnsoverhttps.DnsRecordCodec.decodeAnswers(DnsRecordCodec.kt:74) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.dnsoverhttps.DnsOverHttps.readResponse(DnsOverHttps.kt:231) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.dnsoverhttps.DnsOverHttps.processResponse(DnsOverHttps.kt:153) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.dnsoverhttps.DnsOverHttps.access$processResponse(DnsOverHttps.kt:55) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.dnsoverhttps.DnsOverHttps$executeRequests$1.onResponse(DnsOverHttps.kt:133) at novelai-helper-1.0.9.mirai2.jar[private]//okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)