Skip to content

Commit 93877ec

Browse files
XiaochenCuiKernelDeimos
authored andcommitted
remove the "delegate" branch
1 parent e112537 commit 93877ec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/backend/src/modules/airouter/AIChatService.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,6 @@ class AIChatService extends BaseService {
481481
intended_service
482482
});
483483

484-
if (!delegate) {
485-
// TODO (xiaochen): delegate all ai services in the future, this branch will be removed.
486-
487484
// Updated: Check usage and get a boolean result instead of throwing error
488485
const svc_cost = this.services.get('cost');
489486
const available = await svc_cost.get_available_amount();
@@ -546,7 +543,6 @@ class AIChatService extends BaseService {
546543
}
547544

548545
this.log.noticeme('AI PARAMETERS', parameters);
549-
}
550546

551547
try {
552548
ret = await svc_driver.call_new_({

0 commit comments

Comments
 (0)