refactor: rename task_type to task for jina embeddings v3 (#8488)
This commit is contained in:
@@ -57,7 +57,7 @@ class JinaTextEmbeddingModel(TextEmbeddingModel):
|
|||||||
data = {"model": model, "input": [transform_jina_input_text(model, text) for text in texts]}
|
data = {"model": model, "input": [transform_jina_input_text(model, text) for text in texts]}
|
||||||
|
|
||||||
if model == "jina-embeddings-v3":
|
if model == "jina-embeddings-v3":
|
||||||
data["task_type"] = "retrieval.passage"
|
data["task"] = "text-matching"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = post(url, headers=headers, data=dumps(data))
|
response = post(url, headers=headers, data=dumps(data))
|
||||||
|
Reference in New Issue
Block a user