Skip to content

Commit

Permalink
fix(OpenAI Node): Simplify code (#5618)
Browse files Browse the repository at this point in the history
fix(OpenAI Node): Simplifiy code
  • Loading branch information
janober authored Mar 5, 2023
1 parent 3c57062 commit 1c65bff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
3 changes: 1 addition & 2 deletions packages/nodes-base/nodes/OpenAi/ChatDescription.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { INodeExecutionData, INodeProperties } from 'n8n-workflow';
import { chatBodyPresend } from './ChatFunctions';

export const chatOperations: INodeProperties[] = [
{
Expand Down Expand Up @@ -115,7 +114,7 @@ const completeOperations: INodeProperties[] = [
send: {
type: 'body',
property: 'messages',
preSend: [chatBodyPresend],
value: '={{ $value.messages }}',
},
},
},
Expand Down
14 changes: 0 additions & 14 deletions packages/nodes-base/nodes/OpenAi/ChatFunctions.ts

This file was deleted.

0 comments on commit 1c65bff

Please sign in to comment.