mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user