Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmd/air/modelcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ var registeredModelRe = sync.OnceValue(func() *regexp.Regexp { return regexp.Mus
// modelVersionRe matches a Unity Catalog model version number.
var modelVersionRe = sync.OnceValue(func() *regexp.Regexp { return regexp.MustCompile(`^[1-9][0-9]*$`) })

// Audio tasks: their requests are multipart uploads of a recording, sent to the
// endpoint's audio route rather than to invocations.
const (
taskAudioTranscriptions = "llm/v1/audio/transcriptions"
taskAudioTranslations = "llm/v1/audio/translations"
)

// validateUCModelName checks a Unity Catalog model name from source, the YAML field
// or a flag.
func validateUCModelName(name, source string) error {
Expand Down
Loading
Loading