Skip to content

Commit

Permalink
refactor: ♻️ remove unused import and update checker logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 18, 2024
1 parent f8a49f5 commit b6c716d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/core/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
PDF_MIME_TYPE,
XLSX_MIME_TYPE,
} from "./constants" // Constants for MIME types and prefixes
import { diag } from "mathjs"
import { Project } from "./server/messages"

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async function parsePromptTemplateCore(
checker.checkString("cacheName")
checker.checkString("filename")
checker.checkString("contentSafety")
checker.checkStringArray("choices")
checker.checkAny("choices", (v) => v)
checker.checkNumber("topLogprobs")

checker.checkRecord("modelConcurrency")
Expand Down

0 comments on commit b6c716d

Please sign in to comment.