mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-09 01:29:12 +08:00
refactor: rename task_type to task for jina embeddings v3 (#8488)
This commit is contained in:
parent
8dfe8c773a
commit
6f222b49f2
@ -57,7 +57,7 @@ class JinaTextEmbeddingModel(TextEmbeddingModel):
|
||||
data = {"model": model, "input": [transform_jina_input_text(model, text) for text in texts]}
|
||||
|
||||
if model == "jina-embeddings-v3":
|
||||
data["task_type"] = "retrieval.passage"
|
||||
data["task"] = "text-matching"
|
||||
|
||||
try:
|
||||
response = post(url, headers=headers, data=dumps(data))
|
||||
|
Loading…
x
Reference in New Issue
Block a user