mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
Fix region for sdk streaming (#2878)
* add Claude 3 Opus model * fix lint * fix vertexai bug * update region for streaming sdk call --------- Co-authored-by: Huy Ngo <huyngo@google.com>
This commit is contained in:
@@ -671,7 +671,7 @@
|
||||
"source": [
|
||||
"from anthropic import AnthropicVertex\n",
|
||||
"\n",
|
||||
"client = AnthropicVertex(region=\"us-central1\", project_id=PROJECT_ID)\n",
|
||||
"client = AnthropicVertex(region=REGION, project_id=PROJECT_ID)\n",
|
||||
"\n",
|
||||
"with client.messages.stream(\n",
|
||||
" max_tokens=1024,\n",
|
||||
|
||||
Reference in New Issue
Block a user