Skip to content

Commit

Permalink
style: 代码格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Nov 15, 2024
1 parent e919fa5 commit 76928f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/core/src/telegram/handler/chat.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
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';
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<Response> {
const sender = MessageSender.fromMessage(context.SHARE_CONTEXT.botToken, message);
Expand Down

0 comments on commit 76928f4

Please sign in to comment.