From 2322f7857e36590a9409d4fe9d89d034c732de9d Mon Sep 17 00:00:00 2001 From: Qu Yi Date: Sun, 10 Nov 2024 17:46:18 +0800 Subject: [PATCH] code_timeout_mins is set to 3 --- settings.js | 10 +++++----- src/agent/prompter.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/settings.js b/settings.js index 50f11d7..aa036c1 100644 --- a/settings.js +++ b/settings.js @@ -6,23 +6,23 @@ export default "auth": "offline", // or "microsoft" "profiles": [ - "./andy.json", + //"./andy.json", // "./profiles/gpt.json", // "./profiles/claude.json", // "./profiles/gemini.json", // "./profiles/llama.json", - // "./profiles/qwen.json", + "./profiles/qwen.json", // using more than 1 profile requires you to /msg each bot indivually ], - "load_memory": false, // load memory from previous session + "load_memory": true, // load memory from previous session "init_message": "Say hello world and your name", // sends to all on spawn "language": "en", // translate to/from this language. Supports these language names: https://cloud.google.com/translate/docs/languages "show_bot_views": false, // show bot's view in browser at localhost:3000, 3001... - "allow_insecure_coding": false, // allows newAction command and model can write/run code on your computer. enable at own risk - "code_timeout_mins": 1, // minutes code is allowed to run. -1 for no timeout,set 1.Set 1 min to timely code adjustments + "allow_insecure_coding": true, // allows newAction command and model can write/run code on your computer. enable at own risk + "code_timeout_mins": 3, // minutes code is allowed to run. -1 for no timeout,set 1.Set 1 min to timely code adjustments "max_messages": 15, // max number of messages to keep in context "max_commands": -1, // max number of commands to use in a response. -1 for no limit diff --git a/src/agent/prompter.js b/src/agent/prompter.js index 5952ac6..bf81a10 100644 --- a/src/agent/prompter.js +++ b/src/agent/prompter.js @@ -182,7 +182,7 @@ export class Prompter { let selected_docs = skill_doc_similarities.slice(0, select_num); let relevant_skill_docs = '#### RELEVENT DOCS INFO ###\nThe following functions are listed in descending order of relevance.\n'; relevant_skill_docs += 'SkillDocs:\n' - relevant_skill_docs += '###'+ selected_docs.map(doc => `${doc.doc_key}`).join('\n'); + relevant_skill_docs += selected_docs.map(doc => `${doc.doc_key}`).join('\n### '); return relevant_skill_docs; }