-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Anthropic plugin config updated with better file structure #36223
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
09483ac
fix: Anthropic plugin config updated with better file structure
albinAppsmith 03ae591
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
albinAppsmith c8cc812
fix: combine single zone in anthropic
albinAppsmith e2f025d
fix: changed query input to query text input
albinAppsmith b7a7184
Merge branch 'release' of https://github.com/appsmithorg/appsmith int…
albinAppsmith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
130 changes: 130 additions & 0 deletions
130
app/server/appsmith-plugins/anthropicPlugin/src/main/resources/editor/chat.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
{ | ||
"identifier": "CHAT", | ||
"controlType": "SECTION_V2", | ||
"conditionals": { | ||
"show": "{{actionConfiguration.formData.command.data === 'CHAT'}}" | ||
}, | ||
"children": [ | ||
{ | ||
"controlType": "DOUBLE_COLUMN_ZONE", | ||
"children": [ | ||
{ | ||
"label": "Models", | ||
"tooltipText": "Select the model for response generation", | ||
"subtitle": "ID of the model to use.", | ||
"isRequired": true, | ||
"propertyName": "chat_model_id", | ||
"configProperty": "actionConfiguration.formData.chatModel.data", | ||
"controlType": "DROP_DOWN", | ||
"initialValue": "", | ||
"options": [], | ||
"placeholderText": "All models will be fetched.", | ||
"fetchOptionsConditionally": true, | ||
"setFirstOptionAsDefault": true, | ||
"alternateViewTypes": ["json"], | ||
"conditionals": { | ||
"enable": "{{true}}", | ||
"fetchDynamicValues": { | ||
"condition": "{{actionConfiguration.formData.command.data === 'CHAT'}}", | ||
"config": { | ||
"params": { | ||
"requestType": "CHAT_MODELS", | ||
"displayType": "DROP_DOWN" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "Max Tokens", | ||
"tooltipText": "The maximum number of tokens to generate in the chat completion.", | ||
"subtitle": "The maximum number of tokens to generate in the chat completion.", | ||
"Description": "Put a positive integer value", | ||
"configProperty": "actionConfiguration.formData.maxTokens", | ||
"controlType": "INPUT_TEXT", | ||
"initialValue": "256", | ||
"isRequired": true, | ||
"dataType": "NUMBER", | ||
"customStyles": { | ||
"width": "270px", | ||
"minWidth": "270px" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"controlType": "SINGLE_COLUMN_ZONE", | ||
"children": [ | ||
{ | ||
"label": "System Prompt", | ||
"Description": "Provide additional instructions for the AI model as system prompt", | ||
"subtitle": "Provide additional instructions for the AI model as system prompt", | ||
"configProperty": "actionConfiguration.formData.systemPrompt.data", | ||
"controlType": "QUERY_DYNAMIC_INPUT_TEXT", | ||
"placeholderText": "Write some text or use {{ }} to reference a dynamic text value", | ||
"initialValue": "", | ||
"isRequired": false, | ||
"customStyles": { | ||
"width": "590px", | ||
"minWidth": "400px" | ||
} | ||
}, | ||
{ | ||
"label": "Messages", | ||
"tooltipText": "Ask a question", | ||
"subtitle": "A list of messages comprising the conversation so far.", | ||
"propertyName": "messages", | ||
"isRequired": true, | ||
"configProperty": "actionConfiguration.formData.messages.data", | ||
"controlType": "ARRAY_FIELD", | ||
"addMoreButtonLabel": "Add message", | ||
"alternateViewTypes": ["json"], | ||
"schema": [ | ||
{ | ||
"label": "Role", | ||
"key": "role", | ||
"controlType": "DROP_DOWN", | ||
"initialValue": "Human", | ||
"options": [ | ||
{ | ||
"label": "Human", | ||
"value": "Human" | ||
}, | ||
{ | ||
"label": "Assistant", | ||
"value": "Assistant" | ||
} | ||
] | ||
}, | ||
{ | ||
"label": "Content", | ||
"key": "content", | ||
"controlType": "QUERY_DYNAMIC_INPUT_TEXT", | ||
"placeholderText": "{{ UserInput.text }}" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"controlType": "DOUBLE_COLUMN_ZONE", | ||
"children": [ | ||
{ | ||
"label": "Temperature", | ||
"tooltipText": "Put a value between 0 and 1", | ||
"Description": "Put a value between 0 and 1", | ||
"subtitle": "Defaults to 1. Ranges from 0 to 1. Use temp closer to 0 for analytical / multiple choice, and closer to 1 for creative and generative tasks.", | ||
"configProperty": "actionConfiguration.formData.temperature", | ||
"controlType": "INPUT_TEXT", | ||
"dataType": "NUMBER", | ||
"initialValue": "1", | ||
"isRequired": false, | ||
"customStyles": { | ||
"width": "270px", | ||
"minWidth": "270px" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the previous field and this field be combined? Same comment in the vision file.