[docs]defsave(self):ifnotself.config_path:raiseValueError("Config path must be set before saving.")cfg=configparser.ConfigParser()cfg.read(self.config_path)ifnotcfg.has_section("parseur"):cfg.add_section("parseur")cfg.set("parseur","api_key",self.api_key)cfg.set("parseur","api_base",self.api_base)withopen(self.config_path,"w")asf:cfg.write(f)logging.info(f"Config saved to {self.config_path}")