File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
Sources/AnthropicSwiftSDK-Bedrock Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public final class AnthropicBedrockClient {
18
18
AnthropicVersion . custom ( " bedrock-2023-05-31 " ) . stringfy
19
19
}
20
20
21
- init ( client: BedrockRuntimeClient , model : Model ) {
22
- self . messages = . init( client: client, model : model )
21
+ init ( client: BedrockRuntimeClient ) {
22
+ self . messages = . init( client: client)
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -16,16 +16,16 @@ public extension BedrockRuntimeClient {
16
16
/// - client: Bedrock runtime client
17
17
/// - model: Claude model, Bedrock supports Haiku or Sonnet instance type.
18
18
/// - Returns: Client using Claude through Bedrock
19
- static func useAnthropic( _ client: BedrockRuntimeClient , model : Model ) -> AnthropicBedrockClient {
20
- AnthropicBedrockClient ( client: client, model : model )
19
+ static func useAnthropic( _ client: BedrockRuntimeClient ) -> AnthropicBedrockClient {
20
+ AnthropicBedrockClient ( client: client)
21
21
}
22
22
23
23
/// Create a client using Claude through Bedrock
24
24
///
25
25
/// - Parameters:
26
26
/// - model: Claude model, Bedrock supports Haiku or Sonnet instance type.
27
27
/// - Returns: Client using Claude through Bedrock
28
- func useAnthropic( model : Model ) -> AnthropicBedrockClient {
29
- AnthropicBedrockClient ( client: self , model : model )
28
+ func useAnthropic( ) -> AnthropicBedrockClient {
29
+ AnthropicBedrockClient ( client: self )
30
30
}
31
31
}
Original file line number Diff line number Diff line change @@ -16,12 +16,9 @@ public struct Messages {
16
16
public let requestContentType = " application/json "
17
17
/// Bedrock API Client
18
18
public let client : BedrockRuntimeClient
19
- /// Claude model for this client
20
- public let model : Model
21
19
22
- init ( client: BedrockRuntimeClient , model : Model ) {
20
+ init ( client: BedrockRuntimeClient ) {
23
21
self . client = client
24
- self . model = model
25
22
}
26
23
27
24
/// Creates a message using the specified parameters and sends a request to the Anthropic API asynchronously.
You can’t perform that action at this time.
0 commit comments