mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 09:01:06 +03:00
Bugfix/Add streaming to chatfireworks (#2884)
add streaming to chatfireworks
This commit is contained in:
@@ -59,6 +59,7 @@ class ChatFireworks_ChatModels implements INode {
|
|||||||
const cache = nodeData.inputs?.cache as BaseCache
|
const cache = nodeData.inputs?.cache as BaseCache
|
||||||
const temperature = nodeData.inputs?.temperature as string
|
const temperature = nodeData.inputs?.temperature as string
|
||||||
const modelName = nodeData.inputs?.modelName as string
|
const modelName = nodeData.inputs?.modelName as string
|
||||||
|
const streaming = nodeData.inputs?.streaming as boolean
|
||||||
|
|
||||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||||
const fireworksApiKey = getCredentialParam('fireworksApiKey', credentialData, nodeData)
|
const fireworksApiKey = getCredentialParam('fireworksApiKey', credentialData, nodeData)
|
||||||
@@ -67,7 +68,8 @@ class ChatFireworks_ChatModels implements INode {
|
|||||||
fireworksApiKey,
|
fireworksApiKey,
|
||||||
model: modelName,
|
model: modelName,
|
||||||
modelName,
|
modelName,
|
||||||
temperature: temperature ? parseFloat(temperature) : undefined
|
temperature: temperature ? parseFloat(temperature) : undefined,
|
||||||
|
streaming: streaming ?? true
|
||||||
}
|
}
|
||||||
if (cache) obj.cache = cache
|
if (cache) obj.cache = cache
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user