mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
remove modelName in AzureOpenAIEmbedding
This commit is contained in:
@@ -27,23 +27,6 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
|
|||||||
name: 'azureOpenAIApiKey',
|
name: 'azureOpenAIApiKey',
|
||||||
type: 'password'
|
type: 'password'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Model Name',
|
|
||||||
name: 'modelName',
|
|
||||||
type: 'options',
|
|
||||||
options: [
|
|
||||||
{
|
|
||||||
label: 'text-embedding-ada-002',
|
|
||||||
name: 'text-embedding-ada-002'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'text-search-ada-doc-001',
|
|
||||||
name: 'text-search-ada-doc-001'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
default: 'text-embedding-ada-002',
|
|
||||||
optional: true
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Azure OpenAI Api Instance Name',
|
label: 'Azure OpenAI Api Instance Name',
|
||||||
name: 'azureOpenAIApiInstanceName',
|
name: 'azureOpenAIApiInstanceName',
|
||||||
@@ -91,13 +74,11 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
|
|||||||
const azureOpenAIApiInstanceName = nodeData.inputs?.azureOpenAIApiInstanceName as string
|
const azureOpenAIApiInstanceName = nodeData.inputs?.azureOpenAIApiInstanceName as string
|
||||||
const azureOpenAIApiDeploymentName = nodeData.inputs?.azureOpenAIApiDeploymentName as string
|
const azureOpenAIApiDeploymentName = nodeData.inputs?.azureOpenAIApiDeploymentName as string
|
||||||
const azureOpenAIApiVersion = nodeData.inputs?.azureOpenAIApiVersion as string
|
const azureOpenAIApiVersion = nodeData.inputs?.azureOpenAIApiVersion as string
|
||||||
const modelName = nodeData.inputs?.modelName as string
|
|
||||||
const stripNewLines = nodeData.inputs?.stripNewLines as boolean
|
const stripNewLines = nodeData.inputs?.stripNewLines as boolean
|
||||||
const batchSize = nodeData.inputs?.batchSize as string
|
const batchSize = nodeData.inputs?.batchSize as string
|
||||||
const timeout = nodeData.inputs?.timeout as string
|
const timeout = nodeData.inputs?.timeout as string
|
||||||
|
|
||||||
const obj: Partial<OpenAIEmbeddingsParams> & Partial<AzureOpenAIInput> = {
|
const obj: Partial<OpenAIEmbeddingsParams> & Partial<AzureOpenAIInput> = {
|
||||||
modelName,
|
|
||||||
azureOpenAIApiKey,
|
azureOpenAIApiKey,
|
||||||
azureOpenAIApiInstanceName,
|
azureOpenAIApiInstanceName,
|
||||||
azureOpenAIApiDeploymentName,
|
azureOpenAIApiDeploymentName,
|
||||||
|
|||||||
Reference in New Issue
Block a user