Skip to content

Function: versionTuple()

versionTuple(name): [number, number, number]

Numeric [major, minor, patch] version parsed from an endpoint name, used to order siblings within a family/tier. Starts at the first digit in the name, then reads successive separator-delimited, digit-prefixed chunks as the three components (missing ones default to 0):

  • databricks-claude-opus-4-8 -> [4, 8, 0]
  • databricks-claude-opus-4-10 -> [4, 10, 0] (sorts above 4-8)
  • databricks-meta-llama-3-3-70b-> [3, 3, 70]
  • databricks-bge-large-en -> [0, 0, 0] (no digits)

Component-wise comparison (not a decimal collapse) so 4.10 beats 4.8 - the bug a major + minor/10 score would hit.

string

[number, number, number]