1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-10-06 09:37:36 +03:00

fix(AI Transform Node): Remove prompt as it's already set in ASK AI endpoint (no-changelog) (#10496)

This commit is contained in:
Shireen Missi 2024-08-21 12:13:30 +01:00 committed by GitHub
parent 6d82fb9fc0
commit d4012c7bf8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
@ -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!,