Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .env.example

This file was deleted.

2 changes: 1 addition & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
celery_app.conf.update(task_track_started=True)
logger = Logger("backend.log")
config = configparser.ConfigParser()
config.read('config.ini')
config.read('config.ini', encoding='utf-8')

api.add_middleware(
CORSMiddleware,
Expand Down
2 changes: 1 addition & 1 deletion cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
warnings.filterwarnings("ignore")

config = configparser.ConfigParser()
config.read('config.ini')
config.read('config.ini', encoding='utf-8')

async def main():
pretty_print("Initializing...", color="status")
Expand Down
4 changes: 2 additions & 2 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ is_local = True
provider_name = ollama
provider_model = deepseek-r1:14b
provider_server_address = 127.0.0.1:11434
agent_name = Name_of_your_AI
agent_name = AiAiAiA
recover_last_session = False
save_session = False
speak = False
listen = False
work_dir = /Users/mlg/Documents/workspace_for_agenticseek
work_dir = \Users\user\OneDrive\文件\agenticSeek
jarvis_personality = False
languages = en
[BROWSER]
Expand Down
4 changes: 2 additions & 2 deletions sources/tools/tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

"""
define a generic tool class, any tool can be used by the agent.

Expand Down Expand Up @@ -39,6 +38,7 @@ def __init__(self):
self.messages = []
self.logger = Logger("tools.log")
self.config = configparser.ConfigParser()
self.config.read('./config.ini', encoding='utf-8')
self.work_dir = self.create_work_dir()
self.excutable_blocks_found = False
self.safe_mode = True
Expand Down Expand Up @@ -72,7 +72,7 @@ def create_work_dir(self):
"""Create the work directory if it does not exist."""
default_path = os.path.dirname(os.getcwd())
if self.config_exists():
self.config.read('./config.ini')
self.config.read('./config.ini', encoding='utf-8')
config_path = self.config['MAIN']['work_dir']
dir_path = default_path if not self.check_config_dir_validity() else config_path
else:
Expand Down