NovelAi Helper AI图片生成, 可对接自建/colab在线运行的 Naifu api
-
@kouki
稍等一下
我发现了新bug,正在修复 -
请下载最新版本 https://github.com/cssxsh/novelai-helper/releases/tag/v1.0.9
/nai
对应的是官方api
/nai-fu
对应本地搭建的 也就是 config 中配置的api -
@cssxsh 说起来能对接webui吗#小声)
-
@kouki
我没用过 -
@cssxsh 好叭好叭,辛苦了
-
爆红了..
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)
-
@kouki
检查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) -
@kouki
127.0.0.1
换成localhost
-
@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)
-
我临时处理了一份新的,你重新下载吧
-
@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
-
-
@cssxsh 啊,刚刚webui被我玩掉了,重启后成功了
辛苦了!
(再次 -
说来官方的api是不是炸了
io.ktor.client.plugins.ServerResponseException: Server error(POST https://api.novelai.net/ai/generate-image: 503 . Text: "{"statusCode":503,"message":"Please refresh your page and try again."}" at novelai-helper-1.0.9.mirai2.jar//xyz.cssxsh.novelai.NovelAiClient$http$1$3$1.invokeSuspend(NovelAiClient.kt:44) at novelai-helper-1.0.9.mirai2.jar//xyz.cssxsh.novelai.NovelAiClient$http$1$3$1.invoke(NovelAiClient.kt) at novelai-helper-1.0.9.mirai2.jar//xyz.cssxsh.novelai.NovelAiClient$http$1$3$1.invoke(NovelAiClient.kt) at novelai-helper-1.0.9.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator.validateResponse(HttpCallValidator.kt:47) at novelai-helper-1.0.9.mirai2.jar[private]//io.ktor.client.plugins.HttpCallValidator.access$validateResponse(HttpCallValidator.kt:40) at novelai-helper-1.0.9.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 novelai-helper-1.0.9.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138) at novelai-helper-1.0.9.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112) at novelai-helper-1.0.9.mirai2.jar[private]//io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14) at novelai-helper-1.0.9.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:749) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
-
官方api好像寄了,不过用本地搭建的那个版本不错,666
-
-
@cssxsh 使用谷歌的colab,免费版似乎只能一直运行12小时,然后重新运行,那个分配的外网地址会变吧;config配置是否也和ban一样,支持热重载呀
-
@shihuang214 在 NovelAi Helper AI图片生成, 可对接自建的 Naifu api 中说:
2小时,然后重新运行,那个分配的外网地址会变吧;config配置是否也和ban一样,支持热重载呀
不支持
-
@cssxsh 新版本好像屏蔽词条不生效,测试了一下nsfw还是会生成R18图片,已经加入到ban.txt种