Skip to content

Commit

Permalink
fix: AzureImageAI enable 判断逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Dec 24, 2024
1 parent acf2154 commit ce516de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/buildinfo.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/lib/core/src/agent/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
4 changes: 2 additions & 2 deletions packages/lib/core/src/config/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const BUILD_TIMESTAMP = 1735030761;
export const BUILD_VERSION = '6df3d23';
export const BUILD_TIMESTAMP = 1735031687;
export const BUILD_VERSION = 'acf2154';
2 changes: 1 addition & 1 deletion packages/lib/core/src/telegram/callback_query/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ce516de

Please sign in to comment.