Skip to content

Commit

Permalink
fix: wrong condition to add engine param (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
marknguyen1302 authored Jul 25, 2024
1 parent 65e0670 commit 28f416d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortex-js/src/usecases/chat/chat.usecases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 28f416d

Please sign in to comment.