From 76928f4314048a347784c86217e7afb6e190f2d6 Mon Sep 17 00:00:00 2001 From: tbxark Date: Fri, 15 Nov 2024 12:14:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/lib/core/src/telegram/handler/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/core/src/telegram/handler/chat.ts b/packages/lib/core/src/telegram/handler/chat.ts index 8f3dcc5e..2072a9a5 100644 --- a/packages/lib/core/src/telegram/handler/chat.ts +++ b/packages/lib/core/src/telegram/handler/chat.ts @@ -1,6 +1,7 @@ import type * as Telegram from 'telegram-bot-api-types'; import type { HistoryModifier, UserMessageItem } from '../../agent'; import type { StreamResultHandler } from '../../agent/chat'; +import type { FilePart, ImagePart, TextPart } from '../../agent/message'; import type { WorkerContext } from '../../config/context'; import type { MessageHandler } from './types'; import { loadChatLLM } from '../../agent'; @@ -8,7 +9,6 @@ import { requestCompletionsFromLLM } from '../../agent/chat'; import { ENV } from '../../config/env'; import { createTelegramBotAPI } from '../api'; import { MessageSender } from '../utils/send'; -import {FilePart, ImagePart, TextPart, UserContent} from "../../agent/message"; export async function chatWithLLM(message: Telegram.Message, params: UserMessageItem | null, context: WorkerContext, modifier: HistoryModifier | null): Promise { const sender = MessageSender.fromMessage(context.SHARE_CONTEXT.botToken, message);