|
@@ -124,7 +124,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
InputType inputType = InputTypeTests.randomWithNull();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, inputType), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), inputType), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var result = listener.actionGet(TIMEOUT);
|
|
|
|
|
@@ -207,7 +207,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
);
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var result = listener.actionGet(TIMEOUT);
|
|
|
|
|
@@ -262,7 +262,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
var action = createAction(getUrl(webServer), "secret", CohereEmbeddingsTaskSettings.EMPTY_SETTINGS, null, null, sender);
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var thrownException = expectThrows(ElasticsearchException.class, () -> listener.actionGet(TIMEOUT));
|
|
|
|
|
@@ -282,7 +282,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
var action = createAction(getUrl(webServer), "secret", CohereEmbeddingsTaskSettings.EMPTY_SETTINGS, null, null, sender);
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var thrownException = expectThrows(ElasticsearchException.class, () -> listener.actionGet(TIMEOUT));
|
|
|
|
|
@@ -302,7 +302,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
var action = createAction(null, "secret", CohereEmbeddingsTaskSettings.EMPTY_SETTINGS, null, null, sender);
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var thrownException = expectThrows(ElasticsearchException.class, () -> listener.actionGet(TIMEOUT));
|
|
|
|
|
@@ -316,7 +316,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
var action = createAction(getUrl(webServer), "secret", CohereEmbeddingsTaskSettings.EMPTY_SETTINGS, null, null, sender);
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var thrownException = expectThrows(ElasticsearchException.class, () -> listener.actionGet(TIMEOUT));
|
|
|
|
|
@@ -330,7 +330,7 @@ public class CohereEmbeddingsActionTests extends ESTestCase {
|
|
|
var action = createAction(null, "secret", CohereEmbeddingsTaskSettings.EMPTY_SETTINGS, null, null, sender);
|
|
|
|
|
|
PlainActionFuture<InferenceServiceResults> listener = new PlainActionFuture<>();
|
|
|
- action.execute(new EmbeddingsInput(List.of("abc"), null, null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
+ action.execute(new EmbeddingsInput(List.of("abc"), null), InferenceAction.Request.DEFAULT_TIMEOUT, listener);
|
|
|
|
|
|
var thrownException = expectThrows(ElasticsearchException.class, () -> listener.actionGet(TIMEOUT));
|
|
|
|