Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rlancemartin committed Apr 4, 2024
1 parent 7aa32bb commit 0f37248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cookbook/anthropic_structured_outputs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
},
{
"cell_type": "code",
"execution_count": 196,
"id": "8f6e09a2-33bb-407f-8ea4-524f002c775a",
"execution_count": null,
"id": "9caa2aaf-1918-4a8a-982d-f8052b92ed44",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -392,7 +392,7 @@
" }\n",
"\n",
"# This will be run as a fallback chain\n",
"fallback_chain = insert_errors | chain\n",
"fallback_chain = insert_errors | code_chain\n",
"N = 3 # Max re-tries\n",
"code_chain_re_try = code_chain.with_fallbacks(fallbacks=[fallback_chain] * N, exception_key=\"error\")"
]
Expand Down

0 comments on commit 0f37248

Please sign in to comment.