Skip to content
Snippets Groups Projects
Unverified Commit 93bc0ffd authored by Parham Saidi's avatar Parham Saidi Committed by GitHub
Browse files

fix: context engine additional options not being passed (#1772)

parent 58a94462
No related branches found
No related tags found
No related merge requests found
---
"@llamaindex/core": patch
---
fix: include additional options for context chat engine
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment