mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### 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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user