Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

Fix init inference --local to also copy .md files to backends directory

Louis Choquel7c635eacca35
diff --git a/pipelex/cli/commands/init/command.py b/pipelex/cli/commands/init/command.py
index 206020294..a8b29045e 100644
--- a/pipelex/cli/commands/init/command.py
+++ b/pipelex/cli/commands/init/command.py
@@ -239,7 +239,7 @@ def execute_initialization(
target_backends_dir = target_inference_dir / "backends"
target_backends_dir.mkdir(parents=True, exist_ok=True)
for backend_file in os.listdir(template_backends_dir):
- if backend_file.endswith(".toml"):
+ if backend_file.endswith((".toml", ".md")):
src_path = template_backends_dir / backend_file
dst_path = target_backends_dir / backend_file
shutil.copy2(src_path, dst_path)