Skip to content

Commit 86b4c12

Browse files
committed
fix: update ANTHROPIC_STYLE_PROVIDERS to include 'bedrock' and adjust getApiProtocol call
1 parent 2a1ece0 commit 86b4c12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/types/src/provider-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export const getModelId = (settings: ProviderSettings): string | undefined => {
301301
}
302302

303303
// Providers that use Anthropic-style API protocol
304-
export const ANTHROPIC_STYLE_PROVIDERS: ProviderName[] = ["anthropic", "claude-code"]
304+
export const ANTHROPIC_STYLE_PROVIDERS: ProviderName[] = ["anthropic", "claude-code", "bedrock"]
305305

306306
// Helper function to determine API protocol for a provider
307307
export const getApiProtocol = (provider: ProviderName | undefined): "anthropic" | "openai" => {

src/core/task/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ export class Task extends EventEmitter<ClineEvents> {
12141214

12151215
// Determine API protocol based on provider and model
12161216
const modelId = getModelId(this.apiConfiguration)
1217-
const apiProtocol = getApiProtocol(this.apiConfiguration.apiProvider, modelId)
1217+
const apiProtocol = getApiProtocol(this.apiConfiguration.apiProvider)
12181218

12191219
await this.say(
12201220
"api_req_started",

0 commit comments

Comments
 (0)