model.test.ts 375 B

123456789
  1. import { describe, expect, test } from "bun:test"
  2. import { parse } from "../../src/util/model"
  3. describe("util.model", () => {
  4. test("splits provider from a nested model identifier", () => {
  5. expect(parse("provider/org/model")).toEqual({ providerID: "provider", modelID: "org/model" })
  6. expect(parse("invalid")).toEqual({ providerID: "invalid", modelID: "" })
  7. })
  8. })