Compare commits

...
Author SHA1 Message Date
Sujit Khasnis 310c580acf fix: update titles, headers 2024-10-22 13:29:28 -05:00
@@ -30,7 +30,7 @@
"id": "IPprg6Oz0QDs"
},
"source": [
"# Getting Started with Claude 3 Models\n",
"# Getting Started with Claude Models\n",
"<table align=\"left\">\n",
" <td style=\"text-align: center\">\n",
" <a href=\"https://colab.research.google.com/github/GoogleCloudPlatform/vertex-ai-samples/blob/main/notebooks/official/generative_ai/anthropic_claude_3_intro.ipynb\">\n",
@@ -66,7 +66,7 @@
"\n",
"### Claude on Vertex AI\n",
"\n",
"Anthropic Claude 3 models on Vertex AI offer fully managed and serverless models are offered as managed APIs. To use a Claude model on Vertex AI, send a request directly to the Vertex AI API endpoint.\n",
"Anthropic Claude models on Vertex AI offer fully managed and serverless models are offered as managed APIs. To use a Claude model on Vertex AI, send a request directly to the Vertex AI API endpoint.\n",
"\n",
"You can stream your Claude responses to reduce the end-user latency perception. A streamed response uses server-sent events (SSE) to incrementally stream the response.\n",
"\n",
@@ -87,11 +87,11 @@
"#### Claude 3 Sonnet\n",
"Anthropic Claude 3 Sonnet is engineered to be dependable for scaled AI deployments across a variety of use cases.\n",
"\n",
"All Claude 3 models can process images and return text outputs, and feature a 200K context window.\n",
"All Claude models can process images and return text outputs, and feature a 200K context window.\n",
"\n",
"## Objective\n",
"\n",
"This notebook shows how to use **Vertex AI API** and **Anthropic’s Vertex SDK for Python** to call the Claude on Vertex AI API with the Claude 3 Sonnet and Claude 3 Haiku model.\n",
"This notebook shows how to use **Vertex AI API** and **Anthropic’s Vertex SDK for Python** to call the Claude models on Vertex AI API.\n",
"\n",
"For more information, see the [Use Claude](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude) documentation.\n"
]
@@ -208,7 +208,7 @@
"id": "2fxZn4SAbxdl"
},
"source": [
"#### Select Claude 3 model"
"#### Select Claude model"
]
},
{
@@ -219,7 +219,7 @@
},
"outputs": [],
"source": [
"MODEL = \"claude-3-5-sonnet@20240620\" # @param [\"claude-3-5-sonnet-v2@20241022\", \"claude-3-5-sonnet@20240620\", \"claude-3-opus@20240229\", \"claude-3-haiku@20240307\", \"claude-3-sonnet@20240229\" ]\n",
"MODEL = \"claude-3-5-sonnet-v2@20241022\" # @param [\"claude-3-5-sonnet-v2@20241022\", \"claude-3-5-sonnet@20240620\", \"claude-3-opus@20240229\", \"claude-3-haiku@20240307\", \"claude-3-sonnet@20240229\" ]\n",
"if MODEL == \"claude-3-5-sonnet-v2@20241022\":\n",
" available_regions = [\"us-east5\"]\n",
"elif MODEL == \"claude-3-5-sonnet@20240620\":\n",
@@ -632,7 +632,7 @@
"id": "czcmJpKPBMVC"
},
"source": [
"#### Select Claude 3 model"
"#### Select Claude model"
]
},
{
@@ -643,7 +643,7 @@
},
"outputs": [],
"source": [
"MODEL = \"claude-3-5-sonnet@20240620\" # @param [\"claude-3-5-sonnet-v2@20241022\", \"claude-3-5-sonnet@20240620\", \"claude-3-opus@20240229\", \"claude-3-haiku@20240307\", \"claude-3-sonnet@20240229\" ]\n",
"MODEL = \"claude-3-5-sonnet-v2@20241022\" # @param [\"claude-3-5-sonnet-v2@20241022\", \"claude-3-5-sonnet@20240620\", \"claude-3-opus@20240229\", \"claude-3-haiku@20240307\", \"claude-3-sonnet@20240229\" ]\n",
"if MODEL == \"claude-3-5-sonnet-v2@20241022\":\n",
" available_regions = [\"us-east5\"]\n",
"elif MODEL == \"claude-3-5-sonnet@20240620\":\n",