Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.
Python
Add OLLAMA get/set to config.py
TheOnlyWayUp6cb793ab3f60
diff --git a/src/config.py b/src/config.pyindex 4f0d06b..166bc9e 100644--- a/src/config.py+++ b/src/config.py@@ -1,5 +1,6 @@import toml+class Config:def __init__(self):self.config = toml.load("config.toml")@@ -9,37 +10,40 @@ class Config:def get_bing_api_key(self):return self.config["API_KEYS"]["BING"]-+def get_bing_api_endpoint(self):return self.config["API_ENDPOINTS"]["BING"]-++ def get_ollama_api_endpoint(self):+ return self.config["API_ENDPOINTS"]["OLLAMA"]+def get_claude_api_key(self):return self.config["API_KEYS"]["CLAUDE"]-+def get_openai_api_key(self):return self.config["API_KEYS"]["OPENAI"]-+def get_netlify_api_key(self):return self.config["API_KEYS"]["NETLIFY"]-+def get_sqlite_db(self):return self.config["STORAGE"]["SQLITE_DB"]-+def get_screenshots_dir(self):return self.config["STORAGE"]["SCREENSHOTS_DIR"]-+def get_pdfs_dir(self):return self.config["STORAGE"]["PDFS_DIR"]-+def get_projects_dir(self):return self.config["STORAGE"]["PROJECTS_DIR"]-+def get_logs_dir(self):return self.config["STORAGE"]["LOGS_DIR"]-+def get_repos_dir(self):return self.config["STORAGE"]["REPOS_DIR"]-+def set_bing_api_key(self, key):self.config["API_KEYS"]["BING"] = keyself.save_config()@@ -47,7 +51,11 @@ class Config:def set_bing_api_endpoint(self, endpoint):self.config["API_ENDPOINTS"]["BING"] = endpointself.save_config()-++ def set_ollama_api_endpoint(self, endpoint):+ self.config["API_ENDPOINTS"]["OLLAMA"] = endpoint+ self.save_config()+def set_claude_api_key(self, key):self.config["API_KEYS"]["CLAUDE"] = keyself.save_config()@@ -59,11 +67,11 @@ class Config:def set_netlify_api_key(self, key):self.config["API_KEYS"]["NETLIFY"] = keyself.save_config()-+def set_sqlite_db(self, db):self.config["STORAGE"]["SQLITE_DB"] = dbself.save_config()-+def set_screenshots_dir(self, dir):self.config["STORAGE"]["SCREENSHOTS_DIR"] = dirself.save_config()@@ -71,7 +79,7 @@ class Config:def set_pdfs_dir(self, dir):self.config["STORAGE"]["PDFS_DIR"] = dirself.save_config()-+def set_projects_dir(self, dir):self.config["STORAGE"]["PROJECTS_DIR"] = dirself.save_config()