Fix: Fixed the issue where the error prompt box on the Agent page would be covered #3221 (#8992)

### What problem does this PR solve?

Fix: Fixed the issue where the error prompt box on the Agent page would
be covered #3221

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2025-07-23 15:09:24 +08:00
committed by GitHub
parent b4b6d296ea
commit 03165a1efa
7 changed files with 319 additions and 44 deletions

View File

@ -8,17 +8,14 @@ export const CodeTemplateStrMap = {
return f"result: {arg1 + arg2}"
`,
[ProgrammingLanguage.Javascript]: `const axios = require('axios');
async function main(args) {
async function main({}) {
try {
const response = await axios.get('https://github.com/infiniflow/ragflow');
console.log('Body:', response.data);
return 'Body:' + response.data;
} catch (error) {
console.error('Error:', error.message);
return 'Error:' + error.message;
}
}
module.exports = { main };
`,
}`,
};
export enum AgentGlobals {