Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 3442317

Browse files
fix: config remote engine (#922)
1 parent 7683f5f commit 3442317

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cortex-js/src/extensions/anthropic.engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default class AnthropicEngineExtension extends OAIEngineExtension {
2727
super(httpService);
2828

2929
eventEmmitter.on('config.updated', async (data) => {
30-
if (data.group === this.name) {
30+
if (data.engine === this.name) {
3131
this.apiKey = data.value;
3232
this.status =
3333
(this.apiKey?.length ?? 0) > 0

cortex-js/src/extensions/groq.engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class GroqEngineExtension extends OAIEngineExtension {
2525
super(httpService);
2626

2727
eventEmmitter.on('config.updated', async (data) => {
28-
if (data.group === this.name) {
28+
if (data.engine === this.name) {
2929
this.apiKey = data.value;
3030
this.status =
3131
(this.apiKey?.length ?? 0) > 0

cortex-js/src/extensions/mistral.engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class MistralEngineExtension extends OAIEngineExtension {
2525
super(httpService);
2626

2727
eventEmmitter.on('config.updated', async (data) => {
28-
if (data.group === this.name) {
28+
if (data.engine === this.name) {
2929
this.apiKey = data.value;
3030
this.status =
3131
(this.apiKey?.length ?? 0) > 0

cortex-js/src/extensions/openai.engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class OpenAIEngineExtension extends OAIEngineExtension {
2525
super(httpService);
2626

2727
eventEmmitter.on('config.updated', async (data) => {
28-
if (data.group === this.name) {
28+
if (data.engine === this.name) {
2929
this.apiKey = data.value;
3030
this.status =
3131
(this.apiKey?.length ?? 0) > 0

cortex-js/src/infrastructure/commanders/cortex-command.commander.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ export class CortexCommand extends CommandRunner {
9292
) {
9393
const config = await this.fileManagerService.getConfig();
9494
try {
95-
const startEngineSpinner = ora('Starting Cortex...');
95+
const startEngineSpinner = ora('Starting Cortex engine...');
9696
await this.cortexUseCases.startCortex().catch((e) => {
97-
startEngineSpinner.fail('Failed to start Cortex');
97+
startEngineSpinner.fail('Failed to start Cortex engine');
9898
throw e;
9999
});
100100
startEngineSpinner.succeed('Cortex started successfully');

0 commit comments

Comments
 (0)