You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/CustomService.java
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/CustomServiceSettings.java
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ public class CustomServiceSettings extends FilteredXContentObject implements Ser
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/response/CompletionResponseParser.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ public class CompletionResponseParser extends BaseCustomResponseParser<ChatCompl
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/response/ErrorResponseParser.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,12 @@ public class ErrorResponseParser implements ToXContentFragment, Function<HttpRes
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/response/RerankResponseParser.java
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,12 @@ public class RerankResponseParser extends BaseCustomResponseParser<RankedDocsRes
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/response/SparseEmbeddingResponseParser.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,11 @@ public class SparseEmbeddingResponseParser extends BaseCustomResponseParser<Spar
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/custom/response/TextEmbeddingResponseParser.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,8 @@ public class TextEmbeddingResponseParser extends BaseCustomResponseParser<TextEm
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/CustomServiceSettingsTests.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -446,8 +446,8 @@ public void testFromMap_ReturnsError_IfResponseMapIsMissing() {
446
446
exception.getMessage(),
447
447
is(
448
448
"Validation Failed: 1: [service_settings] does not contain the required setting [response];"
449
-
+ "2: [service_settings] does not contain the required setting [json_parser];"
450
-
+ "3: [service_settings] does not contain the required setting [error_parser];"
449
+
+ "2: [service_settings.response] does not contain the required setting [json_parser];"
450
+
+ "3: [service_settings.response] does not contain the required setting [error_parser];"
451
451
+ "4: Encountered a null input map while parsing field [path];"
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/custom/response/CompletionResponseParserTests.java
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,11 @@ public static CompletionResponseParser createRandom() {
0 commit comments