refactor(server): canonicalize service API (#31049)

This commit is contained in:
Dax
2026-06-06 23:27:28 -04:00
committed by GitHub
parent d9a6e74fcf
commit 93316f1fae
388 changed files with 7103 additions and 4092 deletions
+9
View File
@@ -0,0 +1,9 @@
import { describe, expect, test } from "bun:test"
import { parse } from "../../src/util/model"
describe("util.model", () => {
test("splits provider from a nested model identifier", () => {
expect(parse("provider/org/model")).toEqual({ providerID: "provider", modelID: "org/model" })
expect(parse("invalid")).toEqual({ providerID: "invalid", modelID: "" })
})
})