mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 09:01:09 +03:00
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
This commit is contained in:
@@ -27,7 +27,7 @@ export class BedrockChat extends LCBedrockChat implements IVisionChatModal {
|
||||
}
|
||||
|
||||
setVisionModel(): void {
|
||||
if (!this.model.startsWith('claude-3')) {
|
||||
if (!this.model.includes('claude-3')) {
|
||||
this.model = DEFAULT_IMAGE_MODEL
|
||||
this.maxTokens = this.configuredMaxToken ? this.configuredMaxToken : DEFAULT_IMAGE_MAX_TOKEN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user