Skip to content

Commit 4138d39

Browse files
Feature flag user service attempt in coreLLMSerivce
1 parent 7e67584 commit 4138d39

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/plugins/core/src/lib/services/coreLLMService/coreLLMService.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ export class CoreLLMService implements ICoreLLMService {
4747
async initialize() {
4848
try {
4949
this.logger = getLogger()
50-
const userData = await this.userService?.getUser()
51-
this.userData = userData
50+
if (ENABLE_USER_SERVICE) {
51+
const userData = await this.userService?.getUser()
52+
this.userData = userData
53+
}
5254
} catch (error: any) {
5355
console.error('Error initializing CoreLLMService:', error)
5456
throw error

0 commit comments

Comments
 (0)