Skip to content

Commit

Permalink
Fixing inference service test deprecation warning in search tests (el…
Browse files Browse the repository at this point in the history
…astic#204386)

Adds a `model_id` property to the model config and renames the service
to `elasticsearch`, as `elser` has been deprecated.
This should avoid triggering API deprecation warning.
  • Loading branch information
jgowdyelastic authored Dec 16, 2024
1 parent c01c6c6 commit 49a5b2f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const endpoint = 'endpoint-1';
const taskType = 'sparse_embedding';
const modelConfig = {
service: 'elser',
service: 'elasticsearch',
service_settings: {
num_allocations: 1,
num_threads: 1,
model_id: '.elser_model_2',
},
};

Expand Down

0 comments on commit 49a5b2f

Please sign in to comment.