Update Bedrock service name to "bedrock-runtime" and model identifiers (#11161)

- **Description:** Bedrock updated boto service name to
"bedrock-runtime" for the InvokeModel and InvokeModelWithResponseStream
APIs. This update also includes new model identifiers for Titan text,
embedding and Anthropic.

Co-authored-by: Mani Kumar Adari <maniadar@amazon.com>
This commit is contained in:
mani2348
2023-09-28 09:42:56 -07:00
committed by GitHub
parent de3e25683e
commit 89ddc7cbb6
3 changed files with 9 additions and 9 deletions

View File

@@ -35,7 +35,7 @@
"\n",
"llm = Bedrock(\n",
" credentials_profile_name=\"bedrock-admin\",\n",
" model_id=\"amazon.titan-tg1-large\"\n",
" model_id=\"amazon.titan-text-express-v1\"\n",
")"
]
},
@@ -82,7 +82,7 @@
"\n",
"llm = Bedrock(\n",
" credentials_profile_name=\"bedrock-admin\",\n",
" model_id=\"amazon.titan-tg1-large\",\n",
" model_id=\"amazon.titan-text-express-v1\",\n",
" streaming=True,\n",
" callbacks=[StreamingStdOutCallbackHandler()],\n",
")"