Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix typing
Vasek Mlejnsky7d1a20499354
diff --git a/apps/docs/src/components/Code.tsx b/apps/docs/src/components/Code.tsxindex 013547db7..153dd1628 100644--- a/apps/docs/src/components/Code.tsx+++ b/apps/docs/src/components/Code.tsx@@ -41,7 +41,7 @@ function CodePanel({isRunnable?: boolean;}) {const child = Children.only(children)- if (isValidElement(child)) code = child.props.code ?? code // Get code from child if available+ if (isValidElement(child)) code = (child.props as any).code ?? code // Get code from child if availableif (!code) {throw new Error(