Skip to content

Commit ddba891

Browse files
authored
Fix: Default vision model overriding custom model name for AWS Chat Bedrock. (#4309)
fix condition to not default to claude haiku when custom model name is provided
1 parent 9d9135b commit ddba891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/nodes/chatmodels/AWSBedrock/FlowiseAWSChatBedrock.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class BedrockChat extends LCBedrockChat implements IVisionChatModal {
2727
}
2828

2929
setVisionModel(): void {
30-
if (!this.model.startsWith('claude-3')) {
30+
if (!this.model.includes('claude-3')) {
3131
this.model = DEFAULT_IMAGE_MODEL
3232
this.maxTokens = this.configuredMaxToken ? this.configuredMaxToken : DEFAULT_IMAGE_MAX_TOKEN
3333
}

0 commit comments

Comments
 (0)