fix(OpenAI Node): Update models to only show those supported (#5805)

This commit is contained in:
Jon
2023-04-12 15:07:35 +01:00
committed by GitHub
parent e6ad17ec64
commit 29959be688
2 changed files with 41 additions and 27 deletions

View File

@@ -84,7 +84,7 @@ const completeOperations: INodeProperties[] = [
{
type: 'filter',
properties: {
pass: "={{ !$responseItem.id.startsWith('audio-') && !['cushman:2020-05-03', 'davinci-if:3.0.0', 'davinci-instruct-beta:2.0.0', 'if'].includes($responseItem.id) && !$responseItem.id.includes('-edit-') && !$responseItem.id.endsWith(':001') }}",
pass: "={{ !$responseItem.id.startsWith('audio-') && !$responseItem.id.startsWith('gpt-') && !$responseItem.id.startsWith('whisper-') && !['cushman:2020-05-03', 'davinci-if:3.0.0', 'davinci-instruct-beta:2.0.0', 'if'].includes($responseItem.id) && !$responseItem.id.includes('-edit-') && !$responseItem.id.endsWith(':001') }}",
},
},
{