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:
Henry Heng
2025-07-28 01:17:47 +01:00
committed by GitHub
parent 8846fd14e6
commit aea2b184da
26 changed files with 443 additions and 115 deletions
@@ -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)