lint fixes

This commit is contained in:
vinodkiran
2024-03-07 20:09:05 +05:30
parent 7ab96a4c39
commit 2b0ca60686
4 changed files with 18 additions and 65 deletions
@@ -103,38 +103,6 @@ class AzureChatOpenAI_ChatModels implements INode {
step: 1,
optional: true,
additionalParams: true
// },
// {
// label: 'Allow Image Uploads',
// name: 'allowImageUploads',
// type: 'boolean',
// description:
// 'Automatically uses gpt-4-vision-preview when image is being uploaded from chat. Only works with LLMChain, Conversation Chain, ReAct Agent, and Conversational Agent',
// default: false,
// optional: true
// },
// {
// label: 'Image Resolution',
// description: 'This parameter controls the resolution in which the model views the image.',
// name: 'imageResolution',
// type: 'options',
// options: [
// {
// label: 'Low',
// name: 'low'
// },
// {
// label: 'High',
// name: 'high'
// },
// {
// label: 'Auto',
// name: 'auto'
// }
// ],
// default: 'low',
// optional: false,
// additionalParams: true
}
]
}
@@ -155,9 +123,6 @@ class AzureChatOpenAI_ChatModels implements INode {
const azureOpenAIApiDeploymentName = getCredentialParam('azureOpenAIApiDeploymentName', credentialData, nodeData)
const azureOpenAIApiVersion = getCredentialParam('azureOpenAIApiVersion', credentialData, nodeData)
// const allowImageUploads = nodeData.inputs?.allowImageUploads as boolean
// const imageResolution = nodeData.inputs?.imageResolution as string
const obj: Partial<AzureOpenAIInput> & BaseLLMParams & Partial<OpenAIChatInput> = {
temperature: parseFloat(temperature),
modelName,
@@ -176,7 +141,7 @@ class AzureChatOpenAI_ChatModels implements INode {
const multiModalOption: IMultiModalOption = {
image: {
allowImageUploads: false,
allowImageUploads: false
}
}