Skip to content

Commit f1e2041

Browse files
Fix/drift search reduce (#1948)
* Fix Reduce Response for non streaming calls * Semver
1 parent 7fba952 commit f1e2041

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "patch",
3+
"description": "Fix Drift Reduce Response for non streaming calls"
4+
}

graphrag/query/structured_search/drift_search/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ async def _reduce_response(
386386
model_response = await self.model.achat(
387387
prompt=query,
388388
history=search_messages,
389-
model_parameters=llm_kwargs,
389+
model_parameters=llm_kwargs.get("model_params", {}),
390390
)
391391

392392
reduced_response = model_response.output.content

0 commit comments

Comments
 (0)