Skip to content

Commit c422f5a

Browse files
committed
remove unused variable
1 parent 866dd45 commit c422f5a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/controllers/ChatController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export class ChatController {
333333

334334
// Get knowledge base search results if available
335335
const aiService = (this.chatManager as any).aiService;
336-
aiService.setResponseMode(responseMode);
336+
337337
let knowledgeResults: string | null = null;
338338

339339
// Get conversation to extract company_id for knowledge base search

src/services/AIService.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export class AIService {
1717
private navigationLinks: NavigationLink[];
1818
private knowledgeBase: string;
1919
private knowledgeBaseService?: KnowledgeBaseService;
20-
private responseMode: ResponseMode;
2120

2221
constructor(config: AIServiceConfig) {
2322
this.config = config;
@@ -32,19 +31,13 @@ export class AIService {
3231
}
3332

3433
this.systemPrompt = this.buildSystemPrompt();
35-
this.responseMode = RESPONSE_MODES.DEVELOPER;
3634
}
3735

3836
setKnowledgeBaseService(service: KnowledgeBaseService): void {
3937
this.knowledgeBaseService = service;
4038
this.systemPrompt = this.buildSystemPrompt();
4139
}
4240

43-
setResponseMode(mode: ResponseMode): void {
44-
this.responseMode = mode;
45-
}
46-
47-
4841
private buildSystemPrompt(): string {
4942
const orgName = this.config.organizationName || 'Your Organization';
5043
const assistantName = this.config.assistantName || `${orgName} AI Assistant`;

0 commit comments

Comments
 (0)