diff --git a/dist/buildinfo.json b/dist/buildinfo.json index a303ea92..ae65ef5e 100644 --- a/dist/buildinfo.json +++ b/dist/buildinfo.json @@ -1 +1 @@ -{"sha":"87f7151","timestamp":1735035314} \ No newline at end of file +{"sha":"e9ceae4","timestamp":1735035887} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index a8171ecc..c608426b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -192,8 +192,8 @@ class ConfigMerger { } } } -const BUILD_TIMESTAMP = 1735035314; -const BUILD_VERSION = "87f7151"; +const BUILD_TIMESTAMP = 1735035887; +const BUILD_VERSION = "e9ceae4"; function createAgentUserConfig() { return Object.assign( {}, @@ -1984,7 +1984,7 @@ class ModelListCallbackQueryHandler { const message = { chat_id: query.message?.chat.id || 0, message_id: query.message?.message_id || 0, - text: `${agent} ${ENV.I18N.callback_query.select_model}`, + text: `${agent} | ${ENV.I18N.callback_query.select_model}`, reply_markup: { inline_keyboard: await this.createKeyboard(models, agent, page) } @@ -2412,9 +2412,13 @@ class ImgCommandHandler { handle = async (message, subcommand, context) => { const sender = MessageSender.fromMessage(context.SHARE_CONTEXT.botToken, message); if (subcommand === "") { + const imgAgent = loadImageGen(context.USER_CONFIG); + const text = `${ENV.I18N.command.help.img} + +${imgAgent?.name || "Nan"} | ${imgAgent?.model(context.USER_CONFIG) || "Nan"}`; const params = { chat_id: message.chat.id, - text: ENV.I18N.command.help.img, + text, reply_markup: { inline_keyboard: [[ { @@ -2687,9 +2691,10 @@ class ModelsCommandHandler { handle = async (message, subcommand, context) => { const sender = MessageSender.fromMessage(context.SHARE_CONTEXT.botToken, message); const chatAgent = loadChatLLM(context.USER_CONFIG); + const text = `${chatAgent?.name || "Nan"} | ${chatAgent?.model(context.USER_CONFIG) || "Nan"}`; const params = { chat_id: message.chat.id, - text: `${chatAgent?.name || "Nan"} | ${chatAgent?.model(context.USER_CONFIG) || "Nan"}`, + text, reply_markup: { inline_keyboard: [[ { diff --git a/packages/lib/core/src/config/version.ts b/packages/lib/core/src/config/version.ts index 856c1f07..9773395e 100644 --- a/packages/lib/core/src/config/version.ts +++ b/packages/lib/core/src/config/version.ts @@ -1,2 +1,2 @@ -export const BUILD_TIMESTAMP = 1735035314; -export const BUILD_VERSION = '87f7151'; +export const BUILD_TIMESTAMP = 1735035887; +export const BUILD_VERSION = 'e9ceae4'; diff --git a/packages/lib/core/src/telegram/callback_query/system.ts b/packages/lib/core/src/telegram/callback_query/system.ts index 5de8e172..b66faf3f 100644 --- a/packages/lib/core/src/telegram/callback_query/system.ts +++ b/packages/lib/core/src/telegram/callback_query/system.ts @@ -144,7 +144,7 @@ export class ModelListCallbackQueryHandler implements CallbackQueryHandler { const message: Telegram.EditMessageTextParams = { chat_id: query.message?.chat.id || 0, message_id: query.message?.message_id || 0, - text: `${agent} ${ENV.I18N.callback_query.select_model}`, + text: `${agent} | ${ENV.I18N.callback_query.select_model}`, reply_markup: { inline_keyboard: await this.createKeyboard(models, agent, page), }, diff --git a/packages/lib/core/src/telegram/command/system.ts b/packages/lib/core/src/telegram/command/system.ts index 1244249f..f719f279 100644 --- a/packages/lib/core/src/telegram/command/system.ts +++ b/packages/lib/core/src/telegram/command/system.ts @@ -15,9 +15,11 @@ export class ImgCommandHandler implements CommandHandler { handle = async (message: Telegram.Message, subcommand: string, context: WorkerContext): Promise => { const sender = MessageSender.fromMessage(context.SHARE_CONTEXT.botToken, message); if (subcommand === '') { + const imgAgent = loadImageGen(context.USER_CONFIG); + const text = `${ENV.I18N.command.help.img}\n\n${imgAgent?.name || 'Nan'} | ${imgAgent?.model(context.USER_CONFIG) || 'Nan'}`; const params: Telegram.SendMessageParams = { chat_id: message.chat.id, - text: ENV.I18N.command.help.img, + text, reply_markup: { inline_keyboard: [[ { @@ -294,9 +296,10 @@ export class ModelsCommandHandler implements CommandHandler { handle = async (message: Telegram.Message, subcommand: string, context: WorkerContext): Promise => { const sender = MessageSender.fromMessage(context.SHARE_CONTEXT.botToken, message); const chatAgent = loadChatLLM(context.USER_CONFIG); + const text = `${chatAgent?.name || 'Nan'} | ${chatAgent?.model(context.USER_CONFIG) || 'Nan'}`; const params: Telegram.SendMessageParams = { chat_id: message.chat.id, - text: `${chatAgent?.name || 'Nan'} | ${chatAgent?.model(context.USER_CONFIG) || 'Nan'}`, + text, reply_markup: { inline_keyboard: [[ {