diff --git a/cortex-js/src/usecases/chat/chat.usecases.ts b/cortex-js/src/usecases/chat/chat.usecases.ts index cb884247d..12855ad3b 100644 --- a/cortex-js/src/usecases/chat/chat.usecases.ts +++ b/cortex-js/src/usecases/chat/chat.usecases.ts @@ -52,7 +52,7 @@ export class ChatUsecases { } const payload = { ...createChatDto, - ...(model.engine && isRemoteEngine(model.engine) && { engine: model.engine }), + ...(model.engine && !isRemoteEngine(model.engine) && { engine: model.engine }), }; try { return await engine.inference(