Skip to content

Commit f0184e4

Browse files
Ensure summaryLLM is initialised
1 parent db75f00 commit f0184e4

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

frontend/src/app/modules/chat/conversation/conversation.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,13 @@ export class ConversationComponent implements OnInit, OnDestroy, AfterViewInit {
227227

228228
ngAfterViewInit() {
229229
setTimeout(() => {
230-
this.messageInput.nativeElement.focus();
230+
if(this.messageInput)
231+
this.messageInput.nativeElement.focus();
232+
else {
233+
setTimeout(() => {
234+
this.messageInput.nativeElement.focus();
235+
}, 1000); // Small delay to ensure its displayed
236+
}
231237
}, 500); // Small delay to ensure its displayed
232238
}
233239

src/llm/multi-agent/blueberry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { logger } from '#o11y/logger';
1111

1212
export function blueberryLLMRegistry(): Record<string, () => LLM> {
1313
return {
14-
'MoA blueberry:': () => new Blueberry(),
14+
'MoA:blueberry': () => new Blueberry(),
1515
};
1616
}
1717

src/llm/services/defaultLlms.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Gemini_2_0_Flash } from '#llm/services/vertexai';
88
let _summaryLLM: LLM;
99

1010
export function summaryLLM(): LLM {
11+
if (!_summaryLLM) defaultLLMs();
1112
return _summaryLLM;
1213
}
1314

src/llm/services/sambanova.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { OpenAIProvider, createOpenAI } from '@ai-sdk/openai';
22
import { InputCostFunction, OutputCostFunction, perMilTokens } from '#llm/base-llm';
33
import { currentUser } from '#user/userService/userContext';
4-
import { envVar } from '#utils/env-var';
54
import { LLM } from '../llm';
65
import { AiLLM } from './ai-llm';
76

src/swe/discovery/selectFilesAgent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Then you can select additional files to read and inspect if required from the <p
6363
6464
## Response Format
6565
Your response must finish in the following format:
66+
<think>
6667
<observations-to-requirements>
6768
</observations-to-requirements>
6869
<keep-ignore-thinking>
@@ -72,6 +73,7 @@ Your response must finish in the following format:
7273
</select-files-thinking>
7374
<requirements-solution-thinking>
7475
</requirements-solution-thinking>
76+
</think>
7577
<json>
7678
</json>
7779
@@ -328,7 +330,7 @@ ${query}
328330
Please provide a detailed answer to the query using the information from the available file contents, and including citations to the files where the relevant information was found.
329331
Respond in the following format (Note only the contents of the result tag will be returned to the user):
330332
331-
<thinking></thinking>
333+
<think></think>
332334
<reflection></reflection>
333335
<result></result>
334336
`;

0 commit comments

Comments
 (0)