Skip to content

Commit

Permalink
fix(AI Transform Node): Remove prompt as it's already set in ASK AI e…
Browse files Browse the repository at this point in the history
…ndpoint (no-changelog) (#10496)
  • Loading branch information
ShireenMissi authored Aug 21, 2024
1 parent 6d82fb9 commit d4012c7
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,6 @@ function getPath(parameter: string) {
return (props.path ? `${props.path}.` : '') + parameter;
}
function createPrompt(prompt: string) {
return `
Important! The original input must remain unchanged. If there is a risk of modifying the original input, create a copy of it before making any changes. Use appropriate methods to ensure that the properties of objects are not directly altered.
Always return an array
${prompt}
`;
}
async function onSubmit() {
const { activeNode } = useNDVStore();
const { showMessage } = useToast();
Expand Down Expand Up @@ -111,7 +101,7 @@ async function onSubmit() {
: 'gpt-3.5-turbo-16k';
const payload = {
question: createPrompt(prompt.value),
question: prompt.value,
context: {
schema: schemas.parentNodesSchemas,
inputSchema: schemas.inputSchema!,
Expand Down

0 comments on commit d4012c7

Please sign in to comment.