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/googlevertexai/GoogleVertexAiService.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -256,6 +256,8 @@ public Model updateModelWithEmbeddingDetails(Model model, int embeddingSize) {
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/googlevertexai/GoogleVertexAiServiceFields.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,10 @@ public class GoogleVertexAiServiceFields {
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/googlevertexai/embeddings/GoogleVertexAiEmbeddingsModel.java
+53-16Lines changed: 53 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,13 @@ public GoogleVertexAiEmbeddingsModel(GoogleVertexAiEmbeddingsModel model, Google
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/googlevertexai/embeddings/GoogleVertexAiEmbeddingsServiceSettings.java
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/googlevertexai/embeddings/GoogleVertexAiEmbeddingsModelTests.java
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ public void testBuildUri() throws URISyntaxException {
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/googlevertexai/embeddings/GoogleVertexAiEmbeddingsServiceSettingsTests.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ public void testFromMap_Request_CreatesSettingsCorrectly() {
60
60
location,
61
61
projectId,
62
62
model,
63
+
null, // TODO: Randomize this
64
+
null, // TODO: Randomize this
63
65
dimensionsSetByUser,
64
66
maxInputTokens,
65
67
dims,
@@ -75,6 +77,8 @@ public void testToXContent_WritesAllValues() throws IOException {
75
77
"location",
76
78
"projectId",
77
79
"modelId",
80
+
null, // TODO: Set this value
81
+
null, // TODO: Set this value
78
82
true,
79
83
10,
80
84
10,
@@ -107,6 +111,8 @@ public void testFilteredXContentObject_WritesAllValues_ExceptDimensionsSetByUser
0 commit comments