diff --git a/.changeset/cuddly-bulldogs-drive.md b/.changeset/cuddly-bulldogs-drive.md new file mode 100644 index 0000000000000000000000000000000000000000..f926a1865aa0ef770f74e8e8d77dc46c6d5ecd78 --- /dev/null +++ b/.changeset/cuddly-bulldogs-drive.md @@ -0,0 +1,5 @@ +--- +"@llamaindex/core": patch +--- + +fix: include additional options for context chat engine diff --git a/packages/core/src/chat-engine/context-chat-engine.ts b/packages/core/src/chat-engine/context-chat-engine.ts index b1f1ff75ea0b896e3ca3fd0e894bc18fd3672f15..ff9be1a81518faf052094bec6922b693e5bfef35 100644 --- a/packages/core/src/chat-engine/context-chat-engine.ts +++ b/packages/core/src/chat-engine/context-chat-engine.ts @@ -102,6 +102,7 @@ export class ContextChatEngine extends PromptMixin implements BaseChatEngine { const stream = await this.chatModel.chat({ messages: requestMessages.messages, stream: true, + additionalChatOptions: params.chatOptions as object, }); return streamConverter( streamReducer({ @@ -117,6 +118,7 @@ export class ContextChatEngine extends PromptMixin implements BaseChatEngine { } const response = await this.chatModel.chat({ messages: requestMessages.messages, + additionalChatOptions: params.chatOptions as object, }); chatHistory.put(response.message); return EngineResponse.fromChatResponse(response, requestMessages.nodes);