GHHG10's picture
download
raw
665 Bytes
type PromptPlaceholderInput = {
mode: "normal" | "shell"
commentCount: number
example: string
suggest: boolean
t: (key: string, params?: Record<string, string>) => string
}
export function promptPlaceholder(input: PromptPlaceholderInput) {
if (input.mode === "shell") return input.t("prompt.placeholder.shell", { example: input.example })
if (input.commentCount > 1) return input.t("prompt.placeholder.summarizeComments")
if (input.commentCount === 1) return input.t("prompt.placeholder.summarizeComment")
if (!input.suggest) return input.t("prompt.placeholder.simple")
return input.t("prompt.placeholder.normal", { example: input.example })
}

Xet Storage Details

Size:
665 Bytes
·
Xet hash:
14a355c85980ccd92cce4d3f4b2c708962b2b339836b7c44449a488ebea43fe5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.