mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
Remove unnecessary import statement and parameter in the async init function
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { GoogleVertexAIEmbeddings, GoogleVertexAIEmbeddingsParams } from 'langchain/embeddings/googlevertexai'
|
||||
import { ICommonObject, INode, INodeData, INodeParams } from '../../../src/Interface'
|
||||
import { INode, INodeData, INodeParams } from '../../../src/Interface'
|
||||
import { getBaseClasses } from '../../../src/utils'
|
||||
|
||||
class GoogleVertexAIEmbedding_Embeddings implements INode {
|
||||
@@ -39,7 +39,7 @@ class GoogleVertexAIEmbedding_Embeddings implements INode {
|
||||
]
|
||||
}
|
||||
|
||||
async init(nodeData: INodeData, _: string, options: ICommonObject): Promise<any> {
|
||||
async init(nodeData: INodeData, _: string): Promise<any> {
|
||||
const model = nodeData.inputs?.modelName as string
|
||||
const obj: GoogleVertexAIEmbeddingsParams = {
|
||||
model
|
||||
|
||||
Reference in New Issue
Block a user