mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 03:01:10 +03:00
fix bedrock model empty bug
This commit is contained in:
@@ -143,7 +143,7 @@ class AWSChatBedrock_ChatModels implements INode {
|
|||||||
|
|
||||||
const obj: BaseBedrockInput & BaseChatModelParams = {
|
const obj: BaseBedrockInput & BaseChatModelParams = {
|
||||||
region: iRegion,
|
region: iRegion,
|
||||||
model: customModel ?? iModel,
|
model: customModel ? customModel : iModel,
|
||||||
maxTokens: parseInt(iMax_tokens_to_sample, 10),
|
maxTokens: parseInt(iMax_tokens_to_sample, 10),
|
||||||
temperature: parseFloat(iTemperature),
|
temperature: parseFloat(iTemperature),
|
||||||
streaming: streaming ?? true
|
streaming: streaming ?? true
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class AWSBedrockEmbedding_Embeddings implements INode {
|
|||||||
const customModel = nodeData.inputs?.customModel as string
|
const customModel = nodeData.inputs?.customModel as string
|
||||||
|
|
||||||
const obj: BedrockEmbeddingsParams = {
|
const obj: BedrockEmbeddingsParams = {
|
||||||
model: customModel ?? iModel,
|
model: customModel ? customModel : iModel,
|
||||||
region: iRegion
|
region: iRegion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ class AWSBedrock_LLMs implements INode {
|
|||||||
const iMax_tokens_to_sample = nodeData.inputs?.max_tokens_to_sample as string
|
const iMax_tokens_to_sample = nodeData.inputs?.max_tokens_to_sample as string
|
||||||
const cache = nodeData.inputs?.cache as BaseCache
|
const cache = nodeData.inputs?.cache as BaseCache
|
||||||
const obj: Partial<BaseBedrockInput> & BaseLLMParams = {
|
const obj: Partial<BaseBedrockInput> & BaseLLMParams = {
|
||||||
model: customModel ?? iModel,
|
model: customModel ? customModel : iModel,
|
||||||
region: iRegion,
|
region: iRegion,
|
||||||
temperature: parseFloat(iTemperature),
|
temperature: parseFloat(iTemperature),
|
||||||
maxTokens: parseInt(iMax_tokens_to_sample, 10)
|
maxTokens: parseInt(iMax_tokens_to_sample, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user