Files
LLeMbas-CLI/tests/model-kind.test.ts
T
HomerandClaude Opus 5.5 f9bad01ed7
ci / check (push) Waiting to run
LLeMbas CLI 1.0.0
The first public release of LLeMbas CLI: a terminal coding agent and project manager for any LLM
API, with permission modes, git snapshots, memory and skills, knowledge bases, MCP, voice, and a
link to a LLeMbas instance whose web UI can work its sessions too. Signed Linux binaries for x64
and arm64.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 21:59:03 +00:00

8 lines
422 B
TypeScript

import { expect, test } from "bun:test"
import { isChatModel } from "../src/lembas/webui.ts"
test("a model's kind: only embedding, stt, tts and image are not chat", () => {
for (const kind of [undefined, null, "chat", "openai", "anthropic"]) expect(isChatModel({ id: "m", kind } as any)).toBe(true)
for (const kind of ["embedding", "stt", "tts", "image"]) expect(isChatModel({ id: "m", kind } as any)).toBe(false)
})