Skip to content

Commit 16b65b5

Browse files
committed
remove unused code
1 parent 06470b1 commit 16b65b5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/alibabacloudsearch/completion/AlibabaCloudSearchCompletionServiceSettingsTests.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
package org.elasticsearch.xpack.inference.services.alibabacloudsearch.completion;
99

1010
import org.elasticsearch.common.io.stream.Writeable;
11-
import org.elasticsearch.inference.SimilarityMeasure;
1211
import org.elasticsearch.test.AbstractWireSerializingTestCase;
13-
import org.elasticsearch.xpack.inference.services.ServiceFields;
1412
import org.elasticsearch.xpack.inference.services.alibabacloudsearch.AlibabaCloudSearchServiceSettings;
1513
import org.elasticsearch.xpack.inference.services.alibabacloudsearch.AlibabaCloudSearchServiceSettingsTests;
1614
import org.hamcrest.MatcherAssert;
@@ -29,25 +27,13 @@ public static AlibabaCloudSearchCompletionServiceSettings createRandom() {
2927
}
3028

3129
public void testFromMap() {
32-
var url = "https://www.abc.com";
33-
var similarity = SimilarityMeasure.DOT_PRODUCT.toString();
34-
var dims = 1536;
35-
var maxInputTokens = 512;
3630
var model = "model";
3731
var host = "host";
3832
var workspaceName = "default";
3933
var httpSchema = "https";
4034
var serviceSettings = AlibabaCloudSearchCompletionServiceSettings.fromMap(
4135
new HashMap<>(
4236
Map.of(
43-
ServiceFields.URL,
44-
url,
45-
ServiceFields.SIMILARITY,
46-
similarity,
47-
ServiceFields.DIMENSIONS,
48-
dims,
49-
ServiceFields.MAX_INPUT_TOKENS,
50-
maxInputTokens,
5137
AlibabaCloudSearchServiceSettings.HOST,
5238
host,
5339
AlibabaCloudSearchServiceSettings.SERVICE_ID,

0 commit comments

Comments
 (0)