Skip to content

[9.2] [Inference API] Do not write "task" field in Jina embedding request if unsupported (#142181)#142264

Merged
elasticsearchmachine merged 1 commit intoelastic:9.2from
DonalEvans:backport/9.2/pr-142181
Feb 10, 2026
Merged

[9.2] [Inference API] Do not write "task" field in Jina embedding request if unsupported (#142181)#142264
elasticsearchmachine merged 1 commit intoelastic:9.2from
DonalEvans:backport/9.2/pr-142181

Conversation

@DonalEvans
Copy link
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

…f unsupported (elastic#142181)

If the model being used does not support the specified InputType, do not
write the "task" field when sending a request to JinaAI. More
specifically, for jina-clip-v2, do not write the "task" field for
InputType values other than SEARCH and INTERNAL_SEARCH.

(cherry picked from commit d08631b)

# Conflicts:
#	x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/services/jinaai/request/JinaAIEmbeddingsRequestEntity.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/jinaai/JinaAIServiceTests.java
#	x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/jinaai/request/JinaAIEmbeddingsRequestEntityTests.java
@DonalEvans DonalEvans added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Feb 10, 2026
@elasticsearchmachine elasticsearchmachine merged commit ea976d4 into elastic:9.2 Feb 10, 2026
35 checks passed
@DonalEvans DonalEvans deleted the backport/9.2/pr-142181 branch February 10, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v9.2.6

2 participants