Skip to content

Commit

Permalink
feat: 🎨 add default value for tags and unlisted flag
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 7, 2025
1 parent f1002c5 commit 2c0be5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/prompty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function promptyFrontmatterToMeta(frontmatter: PromptyFrontmatter): PromptArgs {
const {
name,
description,
tags,
tags = [],
sample,
inputs,
outputs,
Expand Down Expand Up @@ -109,14 +109,14 @@ function promptyFrontmatterToMeta(frontmatter: PromptyFrontmatter): PromptArgs {
modelName = `azure_serverless:${configuration.azure_endpoint}`
} else if (configuration?.type === "openai")
modelName = `openai:${configuration.type}`

const unlisted = tags.includes("unlisted")
const meta = deleteUndefinedValues({
model: modelName,
title: name,
description,
files,
tests,
//tags,
unlisted,
parameters,
responseType: outputs
? "json_object"
Expand Down

0 comments on commit 2c0be5d

Please sign in to comment.