diff --git a/dist/buildinfo.json b/dist/buildinfo.json index 9caa4840..7863fd0d 100644 --- a/dist/buildinfo.json +++ b/dist/buildinfo.json @@ -1 +1 @@ -{"sha":"6df3d23","timestamp":1735030761} \ No newline at end of file +{"sha":"acf2154","timestamp":1735031687} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 290e2096..13afec1c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -194,8 +194,8 @@ class ConfigMerger { } } } -const BUILD_TIMESTAMP = 1735030761; -const BUILD_VERSION = "6df3d23"; +const BUILD_TIMESTAMP = 1735031687; +const BUILD_VERSION = "acf2154"; function createAgentUserConfig() { return Object.assign( {}, @@ -1457,7 +1457,7 @@ class AzureChatAI { class AzureImageAI { name = "azure"; modelKey = "AZURE_DALLE_API"; - enable = (ctx) => !!(ctx.AZURE_API_KEY && ctx.AZURE_DALLE_API); + enable = (ctx) => !!(ctx.AZURE_API_KEY && ctx.AZURE_RESOURCE_NAME); model = (ctx) => ctx.AZURE_IMAGE_MODEL; modelList = (ctx) => Promise.resolve([ctx.AZURE_IMAGE_MODEL]); request = async (prompt, context) => { @@ -1879,9 +1879,9 @@ class AgentListCallbackQueryHandler { agentLoader; needAuth = TELEGRAM_AUTH_CHECKER.shareModeGroup; constructor(prefix, changeAgentPrefix, agentLoader) { - this.agentLoader = agentLoader; this.prefix = prefix; this.changeAgentPrefix = changeAgentPrefix; + this.agentLoader = agentLoader; this.createKeyboard = this.createKeyboard.bind(this); } static Chat() { diff --git a/packages/lib/core/src/agent/azure.ts b/packages/lib/core/src/agent/azure.ts index 076c3c33..15ec4521 100644 --- a/packages/lib/core/src/agent/azure.ts +++ b/packages/lib/core/src/agent/azure.ts @@ -58,7 +58,7 @@ export class AzureImageAI implements ImageAgent { readonly name = 'azure'; readonly modelKey = 'AZURE_DALLE_API'; - readonly enable: AgentEnable = ctx => !!(ctx.AZURE_API_KEY && ctx.AZURE_DALLE_API); + readonly enable: AgentEnable = ctx => !!(ctx.AZURE_API_KEY && ctx.AZURE_RESOURCE_NAME); readonly model: AgentModel = ctx => ctx.AZURE_IMAGE_MODEL; readonly modelList: AgentModelList = ctx => Promise.resolve([ctx.AZURE_IMAGE_MODEL]); diff --git a/packages/lib/core/src/config/version.ts b/packages/lib/core/src/config/version.ts index 5609306c..817509ea 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 = 1735030761; -export const BUILD_VERSION = '6df3d23'; +export const BUILD_TIMESTAMP = 1735031687; +export const BUILD_VERSION = 'acf2154'; diff --git a/packages/lib/core/src/telegram/callback_query/system.ts b/packages/lib/core/src/telegram/callback_query/system.ts index 023e6eb3..5de8e172 100644 --- a/packages/lib/core/src/telegram/callback_query/system.ts +++ b/packages/lib/core/src/telegram/callback_query/system.ts @@ -15,9 +15,9 @@ export class AgentListCallbackQueryHandler implements CallbackQueryHandler { needAuth = TELEGRAM_AUTH_CHECKER.shareModeGroup; constructor(prefix: string, changeAgentPrefix: string, agentLoader: () => string[]) { - this.agentLoader = agentLoader; this.prefix = prefix; this.changeAgentPrefix = changeAgentPrefix; + this.agentLoader = agentLoader; this.createKeyboard = this.createKeyboard.bind(this); }