Skip to content

Commit 64a3c81

Browse files
authored
Merge pull request #658 from ColdBox/copilot/update-router-class
Fix: Use correct module name `bxai` (no hyphen) in AI routing guard
2 parents 31d28a0 + 533aab6 commit 64a3c81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/web/routing/Router.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,10 +1953,10 @@ component
19531953
);
19541954
}
19551955

1956-
if ( !getModuleList().keyArray().findNoCase( "bx-ai" ) ) {
1956+
if ( !getModuleList().keyArray().findNoCase( "bxai" ) ) {
19571957
throw(
19581958
type : "ModuleNotFoundException",
1959-
message: "The BoxLang AI module (bx-ai) is required for AI/MCP routing. Install it via: box install bx-ai"
1959+
message: "The BoxLang AI module (bxai) is required for AI/MCP routing. Install it via: box install bxai"
19601960
);
19611961
}
19621962
}

0 commit comments

Comments
 (0)