We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c2d4e commit a604bb7Copy full SHA for a604bb7
packages/tasks/src/snippets/curl.ts
@@ -159,8 +159,8 @@ export function getCurlInferenceSnippet(
159
opts?: Record<string, unknown>
160
): InferenceSnippet[] {
161
return model.pipeline_tag && model.pipeline_tag in curlSnippets
162
- ? curlSnippets[model.pipeline_tag]?.(model, accessToken, provider, opts) ?? []
163
- : [];
+ ? curlSnippets[model.pipeline_tag]?.(model, accessToken, provider, opts) ?? [{ content: "" }]
+ : [{ content: "" }];
164
}
165
166
export function hasCurlInferenceSnippet(model: Pick<ModelDataMinimal, "pipeline_tag">): boolean {
0 commit comments