Skip to content

Commit 657561e

Browse files
Switch field name for tool
1 parent 315be2c commit 657561e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/inference/UnifiedCompletionRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public record UnifiedCompletionRequest(
3737
@Nullable Stop stop,
3838
@Nullable Float temperature,
3939
@Nullable ToolChoice toolChoice,
40-
@Nullable List<Tool> tool,
40+
@Nullable List<Tool> tools,
4141
@Nullable Float topP,
4242
@Nullable String user
4343
) implements Writeable {
@@ -114,7 +114,7 @@ public void writeTo(StreamOutput out) throws IOException {
114114
out.writeOptionalNamedWriteable(stop);
115115
out.writeOptionalFloat(temperature);
116116
out.writeOptionalNamedWriteable(toolChoice);
117-
out.writeOptionalCollection(tool);
117+
out.writeOptionalCollection(tools);
118118
out.writeOptionalFloat(topP);
119119
out.writeOptionalString(user);
120120
}

0 commit comments

Comments
 (0)