Skip to content

Commit c1dd766

Browse files
committed
Avoid hardcoded streaming param.
1 parent f9c7178 commit c1dd766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/elastic/action/ElasticInferenceServiceActionCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public ExecutableAction create(ElasticInferenceServiceCompletionModel model, Map
131131
model,
132132
COMPLETION_HANDLER,
133133
(chatCompletionInput) -> new ElasticInferenceServiceUnifiedChatCompletionRequest(
134-
new UnifiedChatInput(chatCompletionInput.getInputs(), USER_ROLE, false),
134+
new UnifiedChatInput(chatCompletionInput.getInputs(), USER_ROLE, chatCompletionInput.stream()),
135135
model,
136136
traceContext,
137137
extractRequestMetadataFromThreadContext(threadPool.getThreadContext())

0 commit comments

Comments
 (0)