mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Fix: guess volc embedding model (#16298)
This commit is contained in:
@@ -82,6 +82,8 @@ class VolcEngine(Base):
|
||||
|
||||
if model.get("domain", "") == "Embedding":
|
||||
model_types.append(LLMType.EMBEDDING.value)
|
||||
elif set(model.get("task_type", [])) & {"TextEmbedding", "ImageEmbedding"}:
|
||||
model_types.append(LLMType.EMBEDDING.value)
|
||||
else:
|
||||
modalities = model.get("modalities", {})
|
||||
input_modalities = modalities.get("input_modalities", [])
|
||||
|
||||
Reference in New Issue
Block a user