Update misskey-js

This commit is contained in:
2025-01-29 17:21:44 +00:00
parent e304c3372a
commit f53aa62878
6 changed files with 4 additions and 779 deletions

View File

@@ -1,9 +1,8 @@
import { parseArgs } from "node:util";
import { api } from "misskey-js";
import type { Stream as MisskeyStream } from "misskey-js";
import { Stream } from "misskey-js";
import type { Note } from "misskey-js/entities.js";
import Stream from "./misskey-js/streaming";
import OpenAI from "openai";
import type { ChatCompletionMessageParam } from "openai/resources/index.js";
@@ -209,7 +208,7 @@ async function processJob(job: Job) {
const jobs: Job[] = [];
let stream: MisskeyStream;
let stream: Stream;
let channel: ReturnType<typeof stream.useChannel<"main">>;
/** dispose stream for recreation */
@@ -230,7 +229,7 @@ function initializeStream() {
{
binaryType: "arraybuffer",
},
) as unknown as MisskeyStream;
);
channel = stream.useChannel("main");
// notify when connected