mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +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 {
|
setVisionModel(): void {
|
||||||
if (!this.model.startsWith('claude-3')) {
|
if (!this.model.includes('claude-3')) {
|
||||||
this.model = DEFAULT_IMAGE_MODEL
|
this.model = DEFAULT_IMAGE_MODEL
|
||||||
this.maxTokens = this.configuredMaxToken ? this.configuredMaxToken : DEFAULT_IMAGE_MAX_TOKEN
|
this.maxTokens = this.configuredMaxToken ? this.configuredMaxToken : DEFAULT_IMAGE_MAX_TOKEN
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user