diff --git a/.github/workflows/test_docs.yml b/.github/workflows/test_docs.yml index 39bcf3cdb..4fc9cc068 100644 --- a/.github/workflows/test_docs.yml +++ b/.github/workflows/test_docs.yml @@ -68,6 +68,6 @@ jobs: shell: bash - name: Run tests - run: pytest tests/llm/test_openai/docs + run: pytest tests/llm/test_openai/docs --update-examples env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/docs/examples/recursive.md b/docs/examples/recursive.md index 3d973c64f..cacf6cc73 100644 --- a/docs/examples/recursive.md +++ b/docs/examples/recursive.md @@ -102,7 +102,7 @@ class RecursiveNodeWithDepth(RecursiveNode): raise ValueError("Maximum depth exceeded") return max( [check_depth(child, current_depth + 1) for child in node.children], - default=current_depth + default=current_depth, # Added comma here ) check_depth(self)