Skip to content

Build and run agents you can see, understand and trust.

fix: Correct the dimension argument in dashscope text embedding model (#856)

qbc267cea0e415a
diff --git a/src/agentscope/embedding/_dashscope_embedding.py b/src/agentscope/embedding/_dashscope_embedding.py
index 6c0bea060..d857663e2 100644
--- a/src/agentscope/embedding/_dashscope_embedding.py
+++ b/src/agentscope/embedding/_dashscope_embedding.py
@@ -146,7 +146,7 @@ class DashScopeTextEmbedding(EmbeddingModelBase):
batch_kwargs = {
"input": batch_texts,
"model": self.model_name,
- "dimensions": self.dimensions,
+ "dimension": self.dimensions,
**kwargs,
}