ci / check (push) Waiting to run
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>
8 lines
422 B
TypeScript
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)
|
|
})
|