Skip to content
Open
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
2 changes: 1 addition & 1 deletion ee/apps/inference/src/models/base.json

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions ee/apps/inference/test/model-catalog.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import assert from "node:assert/strict"
import { readFile } from "node:fs/promises"
import { test } from "node:test"

function isRecord(value: unknown): value is Record<string, unknown> {
return typeof value === "object" && value !== null && !Array.isArray(value)
}

function requireRecord(value: unknown, label: string) {
assert.ok(isRecord(value), `${label} must be an object`)
return value
}

test("Databricks GPT-5.6 models expose Max reasoning effort", async () => {
const catalog = requireRecord(
JSON.parse(await readFile(new URL("../src/models/base.json", import.meta.url), "utf8")),
"catalog",
)
const databricks = requireRecord(catalog.databricks, "databricks provider")
const models = requireRecord(databricks.models, "databricks models")

for (const id of [
"databricks-gpt-5-6-luna",
"databricks-gpt-5-6-terra",
"databricks-gpt-5-6-sol",
]) {
const model = requireRecord(models[id], id)
assert.ok(Array.isArray(model.reasoning_options), `${id} reasoning_options must be an array`)
const effort = model.reasoning_options.find(
(option) => isRecord(option) && option.type === "effort",
)
assert.ok(isRecord(effort), `${id} must define effort reasoning options`)
assert.ok(Array.isArray(effort.values), `${id} effort values must be an array`)
assert.ok(effort.values.includes("max"), `${id} must include max effort`)
}
})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.