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
refactor: migrate marketplace.py from requests to httpx (#24015)
木之本澪60d9d0584a60
diff --git a/api/core/helper/marketplace.py b/api/core/helper/marketplace.pyindex fe3078923dc..e837f2fd382 100644--- a/api/core/helper/marketplace.py+++ b/api/core/helper/marketplace.py@@ -1,6 +1,6 @@from collections.abc import Sequence-import requests+import httpxfrom yarl import URLfrom configs import dify_config@@ -23,7 +23,7 @@ def batch_fetch_plugin_manifests(plugin_ids: list[str]) -> Sequence[MarketplacePreturn []url = str(marketplace_api_url / "api/v1/plugins/batch")- response = requests.post(url, json={"plugin_ids": plugin_ids})+ response = httpx.post(url, json={"plugin_ids": plugin_ids})response.raise_for_status()return [MarketplacePluginDeclaration(**plugin) for plugin in response.json()["data"]["plugins"]]@@ -36,7 +36,7 @@ def batch_fetch_plugin_manifests_ignore_deserialization_error(return []url = str(marketplace_api_url / "api/v1/plugins/batch")- response = requests.post(url, json={"plugin_ids": plugin_ids})+ response = httpx.post(url, json={"plugin_ids": plugin_ids})response.raise_for_status()result: list[MarketplacePluginDeclaration] = []for plugin in response.json()["data"]["plugins"]:@@ -50,5 +50,5 @@ def batch_fetch_plugin_manifests_ignore_deserialization_error(def record_install_plugin_event(plugin_unique_identifier: str):url = str(marketplace_api_url / "api/v1/stats/plugins/install_count")- response = requests.post(url, json={"unique_identifier": plugin_unique_identifier})+ response = httpx.post(url, json={"unique_identifier": plugin_unique_identifier})response.raise_for_status()