self review

This commit is contained in:
Charlie Kolb 2024-11-11 09:42:41 +01:00
parent 4cd0e73097
commit d5a6e6c3c2
No known key found for this signature in database
3 changed files with 4 additions and 12 deletions

View file

@ -459,7 +459,7 @@ describe('Langchain Integration', () => {
getNoToolsUsedCallout().should('exist');
});
it('should not show tool info notice if tools were used during execution', () => {
it.only('should not show tool info notice if tools were used during execution', () => {
addNodeToCanvas(MANUAL_CHAT_TRIGGER_NODE_NAME, true);
addNodeToCanvas(AGENT_NODE_NAME, true);
@ -492,10 +492,7 @@ describe('Langchain Integration', () => {
main: { output: outputMessage },
},
metadata: {
subRun: [
{ node: AI_LANGUAGE_MODEL_OPENAI_CHAT_MODEL_NODE_NAME, runIndex: 0 },
{ node: AI_TOOL_CALCULATOR_NODE_NAME, runIndex: 0 },
],
subRun: [{ node: AI_LANGUAGE_MODEL_OPENAI_CHAT_MODEL_NODE_NAME, runIndex: 0 }],
},
}),
createMockNodeExecutionData(AI_TOOL_CALCULATOR_NODE_NAME, {}),

View file

@ -387,11 +387,7 @@ const shouldShowWarning = computed(() => {
<template v-if="shouldShowWarning" #table-user-info>
<div :class="$style.noToolsUsedAlert" data-test-id="no-tools-used-callout">
<N8nCallout theme="secondary">
{{
i18n.baseText('ndv.output.noToolUsedInfo.title') +
'. ' +
i18n.baseText('ndv.output.noToolUsedInfo.description')
}}
{{ i18n.baseText('ndv.output.noToolUsedInfo') }}
</N8nCallout>
</div>
</template>

View file

@ -978,8 +978,7 @@
"ndv.output.tooMuchData.showDataAnyway": "Show data",
"ndv.output.tooMuchData.title": "Display data?",
"ndv.output.waitingToRun": "Waiting to execute...",
"ndv.output.noToolUsedInfo.title": "None of your tools were used in this run",
"ndv.output.noToolUsedInfo.description": "Try giving your tools clearer names and descriptions to help the AI",
"ndv.output.noToolUsedInfo": "None of your tools were used in this run. Try giving your tools clearer names and descriptions to help the AI",
"ndv.title.cancel": "Cancel",
"ndv.title.rename": "Rename",
"ndv.title.renameNode": "Rename node",