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 e4048df commit 68018d9Copy full SHA for 68018d9
packages/tasks/src/snippets/python.ts
@@ -307,7 +307,7 @@ export function getPythonInferenceSnippet(
307
model: ModelDataMinimal,
308
accessToken: string,
309
opts?: Record<string, unknown>
310
-): InferenceSnippet {
+): InferenceSnippet | InferenceSnippet[] {
311
if (model.pipeline_tag === "text-generation" && model.tags.includes("conversational")) {
312
// Conversational model detected, so we display a code snippet that features the Messages API
313
return snippetConversational(model, accessToken, opts);
0 commit comments