Skip to content

Commit

Permalink
setLLMModelForCodeMode -> setLLMForCodeMode
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenwerk committed Feb 4, 2025
1 parent d64481b commit ff49619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/host/app/components/ai-assistant/panel.gts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export default class AiAssistantPanel extends Component<Signature> {
private enterRoom(roomId: string, hidePastSessionsList = true) {
this.matrixService.currentRoomId = roomId;
if (this.operatorModeStateService.state.submode === Submodes.Code) {
this.matrixService.setLLMModelForCodeMode();
this.matrixService.setLLMForCodeMode();
}
if (hidePastSessionsList) {
this.hidePastSessions();
Expand Down
2 changes: 1 addition & 1 deletion packages/host/app/services/matrix-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ export default class MatrixService extends Service {
}
}

async setLLMModelForCodeMode() {
async setLLMForCodeMode() {
this.setLLMModel('anthropic/claude-3.5-sonnet');
}

Expand Down
2 changes: 1 addition & 1 deletion packages/host/app/services/operator-mode-state-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default class OperatorModeStateService extends Service {
this.schedulePersist();

if (submode === Submodes.Code) {
this.matrixService.setLLMModelForCodeMode();
this.matrixService.setLLMForCodeMode();
}
}

Expand Down

0 comments on commit ff49619

Please sign in to comment.