Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AmazonBedrock/anthropic/01_Basic_Prompt_Structure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down Expand Up @@ -194,7 +194,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down Expand Up @@ -428,7 +428,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand All @@ -449,7 +449,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions AmazonBedrock/boto3/01_Basic_Prompt_Structure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"response = client.invoke_model(body=body, modelId=MODEL_NAME)\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down Expand Up @@ -208,7 +208,7 @@
"response = client.invoke_model(body=body, modelId=MODEL_NAME)\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down Expand Up @@ -446,7 +446,7 @@
"response = client.invoke_model(body=body, modelId=MODEL_NAME)\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand All @@ -473,7 +473,7 @@
"response = client.invoke_model(body=body, modelId=MODEL_NAME)\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions Anthropic 1P/01_Basic_Prompt_Structure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down Expand Up @@ -174,7 +174,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down Expand Up @@ -408,7 +408,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand All @@ -429,7 +429,7 @@
" )\n",
"\n",
"# Print Claude's response\n",
"print(response[0].text)"
"print(response.content[0].text)"
]
},
{
Expand Down