Skip to content

Commit 418241f

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 5b90efb commit 418241f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/elastic/ElasticInferenceServiceTests.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -678,17 +678,16 @@ public void testUnifiedCompletionInfer_PropagatesProductUseCaseHeader() throws I
678678

679679
try (var service = createService(senderFactory, elasticInferenceServiceURL)) {
680680
// Mock a successful streaming response
681-
String responseJson =
682-
"""
683-
data: {"id":"1","object":"completion","created":1677858242,"model":"my-model-id",
684-
"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
681+
String responseJson = """
682+
data: {"id":"1","object":"completion","created":1677858242,"model":"my-model-id",
683+
"choices":[{"finish_reason":null,"index":0,"delta":{"role":"assistant","content":"Hello"}}]}
685684
686-
data: {"id":"2","object":"completion","created":1677858242,"model":"my-model-id",
687-
"choices":[{"finish_reason":"stop","index":0,"delta":{"content":" world!"}}]}
685+
data: {"id":"2","object":"completion","created":1677858242,"model":"my-model-id",
686+
"choices":[{"finish_reason":"stop","index":0,"delta":{"content":" world!"}}]}
688687
689-
data: [DONE]
688+
data: [DONE]
690689
691-
""";
690+
""";
692691

693692
webServer.enqueue(new MockResponse().setResponseCode(200).setBody(responseJson));
694693

0 commit comments

Comments
 (0)