Skip to content

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

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

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

Conversation

@DonalEvans
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

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 9aa9dbc into elastic:8.19 Feb 10, 2026
28 checks passed
@DonalEvans DonalEvans deleted the backport/8.19/pr-142181 branch February 10, 2026 23:22
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 v8.19.12

2 participants