mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Chore/O3 MINI (#3962)
* add gemini flash * add gemin flash to vertex * add gemin-1.5-flash-preview to vertex * add azure gpt 4o * add claude 3.5 sonnet * add mistral nemo * add groq llama3.1 * add gpt4o-mini to azure * o1 mini * add groq llama 3.2 * update anthropic models * add 3.5 haiku * update vertex embedding models * add azure o1 models * add o3 mini * add wolframalpha tool
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import { WolframAlphaTool } from '@langchain/community/tools/wolframalpha'
|
||||
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
|
||||
import { getBaseClasses, getCredentialData, getCredentialParam } from '../../../src/utils'
|
||||
|
||||
class WolframAlpha_Tools implements INode {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
type: string
|
||||
icon: string
|
||||
category: string
|
||||
baseClasses: string[]
|
||||
credential: INodeParams
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'WolframAlpha'
|
||||
this.name = 'wolframAlpha'
|
||||
this.version = 1.0
|
||||
this.type = 'WolframAlpha'
|
||||
this.icon = 'wolframalpha.png'
|
||||
this.category = 'Tools'
|
||||
this.description = 'Wrapper around WolframAlpha - a powerful computational knowledge engine'
|
||||
this.inputs = []
|
||||
this.credential = {
|
||||
label: 'Connect Credential',
|
||||
name: 'credential',
|
||||
type: 'credential',
|
||||
credentialNames: ['wolframAlphaAppId']
|
||||
}
|
||||
this.baseClasses = [this.type, ...getBaseClasses(WolframAlphaTool)]
|
||||
}
|
||||
|
||||
async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {
|
||||
const credentialData = await getCredentialData(nodeData.credential ?? '', options)
|
||||
const wolframAlphaAppId = getCredentialParam('wolframAlphaAppId', credentialData, nodeData)
|
||||
return new WolframAlphaTool({
|
||||
appid: wolframAlphaAppId
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { nodeClass: WolframAlpha_Tools }
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
Reference in New Issue
Block a user