-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from fumito-ito/fix/aws-bedrock-invalid-request
Fix issue with incorrect parameters being included in requests when using AWS Bedrock
- Loading branch information
Showing
6 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
Sources/AnthropicSwiftSDK-Bedrock/UnnecessaryParameter.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// UnnecessaryParameter.swift | ||
// | ||
// | ||
// Created by 伊藤史 on 2024/07/01. | ||
// | ||
|
||
import Foundation | ||
|
||
/// Unnecessary parameters to use Anthropic claude through AWS Bedrock | ||
/// | ||
/// When using the Anthropic API through AWS Bedrock, some of the properties required in a normal Anthropic API request were causing errors as invalid properties. | ||
enum UnnecessaryParameter: String, CaseIterable { | ||
case model | ||
case stream | ||
case metadata | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters