Skip to content

Commit c4f93ae

Browse files
committed
make client mandatory?
1 parent 204f05a commit c4f93ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tasks-gen/scripts/generate-snippets-fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function getExpectedInferenceSnippet(
138138
for (const file of files.filter((file) => file.endsWith("." + language) && file.includes(`.${provider}.`)).sort()) {
139139
const client = path.basename(file).split(".").slice(1, -2).join("."); // e.g. '0.huggingface.js.replicate.js' => "huggingface.js"
140140
const content = await fs.readFile(path.join(fixtureFolder, file), { encoding: "utf-8" });
141-
expectedSnippets.push(client === "default" ? { content } : { client, content });
141+
expectedSnippets.push({ client, content });
142142
}
143143
return expectedSnippets;
144144
}

0 commit comments

Comments
 (0)