Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: drop useless and wrong code for zhipu embedding (#11069)
yihong2e00829b1e7e
diff --git a/api/core/model_runtime/model_providers/zhipuai/text_embedding/text_embedding.py b/api/core/model_runtime/model_providers/zhipuai/text_embedding/text_embedding.pyindex f629b62fd53..2428284ba9a 100644--- a/api/core/model_runtime/model_providers/zhipuai/text_embedding/text_embedding.py+++ b/api/core/model_runtime/model_providers/zhipuai/text_embedding/text_embedding.py@@ -105,17 +105,6 @@ class ZhipuAITextEmbeddingModel(_CommonZhipuaiAI, TextEmbeddingModel):return [list(map(float, e)) for e in embeddings], embedding_used_tokens- def embed_query(self, text: str) -> list[float]:- """Call out to ZhipuAI's embedding endpoint.-- Args:- text: The text to embed.-- Returns:- Embeddings for the text.- """- return self.embed_documents([text])[0]-def _calc_response_usage(self, model: str, credentials: dict, tokens: int) -> EmbeddingUsage:"""Calculate response usage