Skip to content

Commit e6335f2

Browse files
committed
update readme
1 parent 3932ede commit e6335f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ To create an `AnthropicBedrockClient` from a `BedrockRuntimeClient` with a `Mode
105105
The API usage is the same as the normal AnthropicClient.
106106

107107
```swift
108-
let client = try BedrockRuntimeClient(region: "USEast1")
109-
let anthropic = BedrockRuntimeClient.useAnthropic(client, model: .claude_3_Haiku)
108+
let client = try BedrockRuntimeClient(region: "us-west-2")
109+
let anthropic = client.useAnthropic()
110110

111111
let response = try await anthropic.messages.createMessage(Message(role: .user, content: [.text("This is test text")]), maxTokens: 1024)
112112
for content in response.content {
@@ -122,8 +122,8 @@ for content in response.content {
122122
Of course, `Streaming Message API` works in the same way.
123123

124124
```swift
125-
let client = try BedrockRuntimeClient(region: "USEast1")
126-
let anthropic = BedrockRuntimeClient.useAnthropic(client, model: .claude_3_Haiku)
125+
let client = try BedrockRuntimeClient(region: "us-west-2")
126+
let anthropic = client.useAnthropic()
127127

128128
let stream = try await anthropic.messages.streamMessage([Message(role: .user, content: [.text("This is test text")])], maxTokens: 1024)
129129
for try await chunk in stream {

0 commit comments

Comments
 (0)