mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(OpenAI Node): Descriptive errors (#6270)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { sendErrorPostReceive } from './GenericFunctions';
|
||||
|
||||
export const textOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -22,6 +23,7 @@ export const textOperations: INodeProperties[] = [
|
||||
method: 'POST',
|
||||
url: '/v1/completions',
|
||||
},
|
||||
output: { postReceive: [sendErrorPostReceive] },
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -34,6 +36,7 @@ export const textOperations: INodeProperties[] = [
|
||||
method: 'POST',
|
||||
url: '/v1/edits',
|
||||
},
|
||||
output: { postReceive: [sendErrorPostReceive] },
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -46,6 +49,7 @@ export const textOperations: INodeProperties[] = [
|
||||
method: 'POST',
|
||||
url: '/v1/moderations',
|
||||
},
|
||||
output: { postReceive: [sendErrorPostReceive] },
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user