Skip to content

Commit

Permalink
fix: Write loader config for Python only
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusschiesser committed Apr 3, 2024
1 parent 83be082 commit a36053b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,17 @@ export const installTemplate = async (

if (props.framework === "fastapi") {
await installPythonTemplate(props);
// write loaders configuration (currently Python only)
await writeLoadersConfig(
props.root,
props.dataSources,
props.useLlamaParse,
);
} else {
await installTSTemplate(props);
}

// write configuration files
await writeLoadersConfig(props.root, props.dataSources, props.useLlamaParse);
// write tools configuration
await writeToolsConfig(
props.root,
props.tools,
Expand Down

0 comments on commit a36053b

Please sign in to comment.