mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Chore/Patch OpenAI Nodes (#4958)
- update lc community and openai version - fix chatfireworks - update reasonings for openai models - update openai apikey param
This commit is contained in:
@@ -111,6 +111,7 @@ class ChatLocalAI_ChatModels implements INode {
|
||||
temperature: parseFloat(temperature),
|
||||
modelName,
|
||||
openAIApiKey: 'sk-',
|
||||
apiKey: 'sk-',
|
||||
streaming: streaming ?? true
|
||||
}
|
||||
|
||||
@@ -118,7 +119,10 @@ class ChatLocalAI_ChatModels implements INode {
|
||||
if (topP) obj.topP = parseFloat(topP)
|
||||
if (timeout) obj.timeout = parseInt(timeout, 10)
|
||||
if (cache) obj.cache = cache
|
||||
if (localAIApiKey) obj.openAIApiKey = localAIApiKey
|
||||
if (localAIApiKey) {
|
||||
obj.openAIApiKey = localAIApiKey
|
||||
obj.apiKey = localAIApiKey
|
||||
}
|
||||
if (basePath) obj.configuration = { baseURL: basePath }
|
||||
|
||||
const model = new ChatOpenAI(obj)
|
||||
|
||||
Reference in New Issue
Block a user