1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 12:54:06 +02:00

deps: update dependencies (#17263)

* deps: update dependencies

* fix?

* fix

* Update AiService.ts

* fix

* update deps
This commit is contained in:
かっこかり
2026-04-01 12:16:36 +09:00
committed by GitHub
parent 7bd7e5c4db
commit dbc5fe2454
17 changed files with 1483 additions and 1471 deletions

View File

@@ -10,7 +10,7 @@ import { Injectable } from '@nestjs/common';
import { Mutex } from 'async-mutex';
import fetch from 'node-fetch';
import { bindThis } from '@/decorators.js';
import type { NSFWJS, PredictionType } from 'nsfwjs';
import type { NSFWJS, PredictionType } from 'nsfwjs/core';
const _filename = fileURLToPath(import.meta.url);
const _dirname = dirname(_filename);
@@ -43,7 +43,7 @@ export class AiService {
tf.env().global.fetch = fetch;
if (this.model == null) {
const nsfw = await import('nsfwjs');
const nsfw = await import('nsfwjs/core');
await this.modelLoadMutex.runExclusive(async () => {
if (this.model == null) {
this.model = await nsfw.load(`file://${_dirname}/../../nsfw-model/`, { size: 299 });