Feature/update openai version, add reasoning effort param, add o3 mini (#3973)

* update openai version, add reasoning effort param

* update azure

* add filter for pinecone llamaindex

* update graph cypher qa chain
This commit is contained in:
Henry Heng
2025-02-04 08:43:27 +00:00
committed by GitHub
parent 2a0e712b7d
commit a0b4abdd13
24 changed files with 498 additions and 289 deletions
@@ -1,4 +1,4 @@
import { AzureOpenAIInput, OpenAI, OpenAIInput } from '@langchain/openai'
import { AzureOpenAIInput, AzureOpenAI, OpenAIInput } from '@langchain/openai'
import { BaseCache } from '@langchain/core/caches'
import { BaseLLMParams } from '@langchain/core/language_models/llms'
import { ICommonObject, INode, INodeData, INodeOptionsValue, INodeParams } from '../../../src/Interface'
@@ -31,7 +31,7 @@ class AzureOpenAI_LLMs implements INode {
this.icon = 'Azure.svg'
this.category = 'LLMs'
this.description = 'Wrapper around Azure OpenAI large language models'
this.baseClasses = [this.type, ...getBaseClasses(OpenAI)]
this.baseClasses = [this.type, ...getBaseClasses(AzureOpenAI)]
this.credential = {
label: 'Connect Credential',
name: 'credential',
@@ -165,7 +165,7 @@ class AzureOpenAI_LLMs implements INode {
if (cache) obj.cache = cache
if (basePath) obj.azureOpenAIBasePath = basePath
const model = new OpenAI(obj)
const model = new AzureOpenAI(obj)
return model
}
}