Skip to content

Commit

Permalink
fix order for text and roles and duplicate description
Browse files Browse the repository at this point in the history
  • Loading branch information
Stamsy committed Mar 11, 2025
1 parent 83eebf7 commit 4859afa
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/nodes-base/nodes/Perplexity/ChatCompletionsDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ export const chatCompletionsFields: INodeProperties[] = [
displayName: 'Message',
name: 'message',
values: [
{
displayName: 'Text',
name: 'content',
required: true,
type: 'string',
default: '',
description: 'The content of the message to be sent',
typeOptions: {
rows: 2,
},
},
{
displayName: 'Role',
name: 'role',
Expand All @@ -106,17 +117,6 @@ export const chatCompletionsFields: INodeProperties[] = [
description:
"Role in shaping the model's response, it tells the model how it should behave and interact with the user",
},
{
displayName: 'Text',
name: 'content',
required: true,
type: 'string',
default: '',
description: 'The content of the message to be sent',
typeOptions: {
rows: 2,
},
},
],
},
],
Expand Down Expand Up @@ -232,7 +232,7 @@ export const chatCompletionsFields: INodeProperties[] = [
type: 'number',
default: 0,
description:
"A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.",
"A value between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.",
typeOptions: {
minValue: -2.0,
maxValue: 2.0,
Expand Down

0 comments on commit 4859afa

Please sign in to comment.