Skip to content

Commit a604bb7

Browse files
committed
ok this seems to break stuff :(
1 parent d3c2d4e commit a604bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tasks/src/snippets/curl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ export function getCurlInferenceSnippet(
159159
opts?: Record<string, unknown>
160160
): InferenceSnippet[] {
161161
return model.pipeline_tag && model.pipeline_tag in curlSnippets
162-
? curlSnippets[model.pipeline_tag]?.(model, accessToken, provider, opts) ?? []
163-
: [];
162+
? curlSnippets[model.pipeline_tag]?.(model, accessToken, provider, opts) ?? [{ content: "" }]
163+
: [{ content: "" }];
164164
}
165165

166166
export function hasCurlInferenceSnippet(model: Pick<ModelDataMinimal, "pipeline_tag">): boolean {

0 commit comments

Comments
 (0)