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: narrow beforeRequest hook type to avoid boolean in array (#23860)
Yongtao Huang02194db0c636
diff --git a/web/service/fetch.ts b/web/service/fetch.tsindex 713b34cdb98..a05c4cdfce2 100644--- a/web/service/fetch.ts+++ b/web/service/fetch.ts@@ -162,7 +162,7 @@ async function base<T>(url: string, options: FetchOptionType = {}, otherOptions:...baseHooks.beforeRequest || [],isPublicAPI && beforeRequestPublicAuthorization,!isPublicAPI && !isMarketplaceAPI && beforeRequestAuthorization,- ].filter(Boolean),+ ].filter((h): h is BeforeRequestHook => Boolean(h)),afterResponse: [...baseHooks.afterResponse || [],afterResponseErrorCode(otherOptions),